SHARE
TWEET

Untitled

a guest Apr 20th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a2enmod ssl
  2. cp /etc/apache2/sites-avaliable/default-ssl.conf /etc/apache2/sites-enabled/default-ssl.conf
  3.  
  4.  
  5. openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/ssl-cert-snakeoil.key -out /etc/ssl/certs/ssl-cert-snakeoil.crt
  6.  
  7. chmod +x /etc/ssl/private/ssl-cert-snakeoil.key
  8. chmod +x /etc/ssl/certs/ssl-cert-snakeoil.crt
  9.  
  10.  
  11. vim /etc/apache2/sites-enabled/default-ssl.conf
  12. alterar __default__ por *
  13. trocar sslCertificatefile de pem para crt
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. /etc/init.d/apache2 reload
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top