Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. # Generate keys
  2. ```
  3. $ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mysitename.key -out mysitename.crt
  4. ```
  5.  
  6. # Apache vhost
  7. ```
  8. <VirtualHost *:443>
  9. SSLEngine on
  10.  
  11. SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  12. SSLCertificateFile /Users/path/mysitename.crt
  13. SSLCertificateKeyFile /Users/path/mysitename.key
  14.  
  15. ServerName mysitename.com
  16. ServerAlias www.mysitename.com
  17.  
  18. DocumentRoot "/Users/path/"
  19. </VirtualHost>
  20. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement