Changes

no edit summary
Line 129: Line 129:     
Install Stunnel package using the code below:
 
Install Stunnel package using the code below:
* apt-get install stunnel4 -y
+
* ''apt-get install stunnel4 -y''
    
* Configure Stunnel
 
* Configure Stunnel
Line 135: Line 135:  
Stunnel configures itself using a file named '''stunnel.conf''' which by default is located in '''/etc/stunnel'''.
 
Stunnel configures itself using a file named '''stunnel.conf''' which by default is located in '''/etc/stunnel'''.
 
Create a '''stunnel.conf''' file in the /etc/stunnel directory.
 
Create a '''stunnel.conf''' file in the /etc/stunnel directory.
* nano /etc/stunnel/stunnel.conf  
+
* ''nano /etc/stunnel/stunnel.conf''
    
Next, specify a service for use with stunnel. Here, it will work as client so file should look like this:
 
Next, specify a service for use with stunnel. Here, it will work as client so file should look like this:
Line 152: Line 152:  
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''
      Line 169: Line 169:     
restart the stunnel configuration using the command:
 
restart the stunnel configuration using the command:
* /etc/init.d/stunnel4 restart  
+
* ''/etc/init.d/stunnel4 restart''
     

Navigation menu