Created
May 5, 2010 20:14
-
-
Save dcrec1/391359 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:443> | |
ServerName server.name.com.br | |
DocumentRoot /var/local/apps/app_nme/public | |
SSLEngine on | |
SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire | |
SSLCertificateFile /opt/ssl/ssl.crt | |
SSLCertificateKeyFile /opt/ssl/ssl.key | |
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl genrsa -des3 -out server.key 1024 | |
openssl req -new -key server.key -out server.csr | |
openssl rsa -in server.key -out server.key | |
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name YOUR_DOMAINNAME_HERE; | |
listen 443; | |
ssl on; | |
ssl_certificate /etc/ssl/server.crt; | |
ssl_certificate_key /etc/ssl/server.key; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment