Jump to content

Stunnel configuration example using Telnet: Difference between revisions

No edit summary
Line 134: Line 134:


'''Step 4: Create certificates'''
'''Step 4: Create certificates'''
Stunnel uses SSL certificate to secure its connections, which you can easily create using the commands:
Stunnel uses SSL certificate to secure its connections, which you can easily create using the commands:


*openssl genrsa -out key.pem 2048
*openssl genrsa -out key.pem 2048
*openssl req -new -x509 -key key.pem -out cert.pem -days 1095
*openssl req -new -x509 -key key.pem -out cert.pem -days 1095


and then create file stunnel.pem
and then create file stunnel.pem
* nano /etc/stunnel/stunnel.pem
* nano /etc/stunnel/stunnel.pem


copy the certificates to stunnel.pem file:
copy the certificates to stunnel.pem file:
* cat key.pem cert.pem >> /etc/stunnel/stunnel.pem
* cat key.pem cert.pem >> /etc/stunnel/stunnel.pem


[[File:Networking Rut955 manual stunnel certificates ubuntu v1.bmp|border]]
[[File:Networking Rut955 manual stunnel certificates ubuntu v1.bmp|border]]
Line 154: Line 158:


[[File:Networking Rut955 manual stunnel restart ubuntu v1.bmp|border]]
[[File:Networking Rut955 manual stunnel restart ubuntu v1.bmp|border]]


==Testing Results==
==Testing Results==
277

edits