Browse files

adding ssl_example dir

  • Loading branch information...
1 parent 56f1c29 commit e83a6e10e7e0d67319eab689a97b64e1536f3d02 @ryanb ryanb committed Jun 8, 2012
View
9 ssl_example/apache.conf
@@ -0,0 +1,9 @@
+# Enable mod_ssl: sudo a2enmod ssl
+<VirtualHost *:443>
+ ServerName example.com
+ DocumentRoot /path/to/current/public
+ SSLEngine on
+ SSLCertificateFile /path/to/example.com.crt
+ SSLCertificateKeyFile /path/to/example.com-private.key
+ SSLCertificateChainFile /path/to/example.com-intermediate.crt
+</VirtualHost>
View
35 ssl_example/example.com-chain.crt
@@ -0,0 +1,35 @@
+-----BEGIN CERTIFICATE-----
+MIICATCCAWoCCQDwbLxwbFe2gzANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJB
+VTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJuZXQgV2lkZ2l0
+cyBQdHkgTHRkMB4XDTEyMDYwNzAxMDEwOFoXDTEzMDYwNzAxMDEwOFowRTELMAkG
+A1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNVBAoTGEludGVybmV0
+IFdpZGdpdHMgUHR5IEx0ZDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAv4Ys
+JZ960gHdJUcrhEcqv5BoOBbBVTWDX9I7OqYWUSrOPrqKeWPm8MHBftpzjOyGV+AV
+cCbyAnid8KOGWQLlhwSCYXy0WM8od0/KcSOWPSjfMxehKEtmKvM6UypGukqHRWby
+FyWBouE9iWUJqxX0f9QBI9WSG8azPApRJ/g4JN0CAwEAATANBgkqhkiG9w0BAQUF
+AAOBgQCCe22tXjlEb35h/ibFaKegYIsClNni5qOKSrlipHNMw/OVFRAnm7ehJLrR
+LuZyvD7/DMbCUwKKEKew9MWrsxxbVb0p5JMNwzdP63MQseDseLWNucMQ0JK9qe7Q
+tADVA3fty0A+/AoKp08ur
+-----END CERTIFICATE-----
+-----BEGIN CERTIFICATE-----
+MIIFA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zAxMDEwOFoXDTEzMDYwNzAxMDEwOFowRTELMAkG
+A1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNVBAoTGEludGVybmV0
+tADVA3fty0A+/AoKp08urDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAv4Ys
+IFdpZGdpdHMgUHR5IEx0Z
+-----END CERTIFICATE-----
View
22 ssl_example/example.com-intermediate.crt
@@ -0,0 +1,22 @@
+-----BEGIN CERTIFICATE-----
+MIIFAzEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJuZXQgV2lkZ2l0
+cCbyAnid8KOGWQLlhwSCYXy0WM8od0/KcSOWPSjfMxehKEtmKvM6UypGukqHRWby
+FyWBouE9iWUJqxX0f9QBI9WSG8azPApRJ/g4JN0CAwEAATANBgkqhkiG9w0BAQUF
+AAOBgQCCe22tXjlEb35h/ibFaKegYIsClNni5qOKSrlipHNMw/OVFRAnm7ehJLrR
+VTETMTCCAWoCCQDwbLxwbFe2gzANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJB
+cyBQdHkgTHRkMB4XDTEyMDYwNzAxMDEwOFoXDTEzMDYwNzAxMDEwOFowRTELMAkG
+A1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNVBAoTGEludGVybmV0
+IFdpZGdpdHMgUHR5IEx0ZDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAv4Ys
+JZ960gHdJUcrhEcqv5BoOBbBVTWDX9I7OqYWUSrOPrqKeWPm8MHBftpzjOyGV+AV
+LuZyvD7/DMbCUwKKEKew9MWrsxxbVb0p5JMNwzdP63MQseDseLWNucMQ0JK9qe7Q
+AAOBgQCCe22tXjlEb35h/ibFaKegYIsClNni5qOKSrlipHNMw/OVFRAnm7ehJLrR
+VTETMTCCAWoCCQDwbLxwbFe2gzANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJB
+cyBQdHkgTHRkMB4XDT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+iCM14
+z67YCGT+VVeRiuvO55VNpalyB1huJgfNrwJBANA0beIvvvwln5DR5On1Y7vmHSod
+b3po38xqj028raudqUZCvrTAcnjOF1QQ1ZIjctixYkwBDv+E82EWi9HSMC0CQC0C
+z0g7zigECkJGM4S3B3UKmMHLuog+Kx5C6K3PchR2slAv1lZ5sUr0Ev+Z2U16htL6
+jAia+oW92Y2Ds71AkgUCQA5rKSNYYnUsTXYdhg8HghL+5scHAsxg0QbKmdjPFn+3
+ldWMA3FMh+55HI66aiJ4ZVj6FkxPTtJrEA3hYQHB/1g=
+-----END RSA PRIVATE KEY-----
View
13 ssl_example/example.com.crt
@@ -0,0 +1,13 @@
+-----BEGIN CERTIFICATE-----
+MIICATCCAWoCCQDwbLxwbFe2gzANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJB
+VTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJuZXQgV2lkZ2l0
+cyBQdHkgTHRkMB4XDTEyMDYwNzAxMDEwOFoXDTEzMDYwNzAxMDEwOFowRTELMAkG
+A1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNVBAoTGEludGVybmV0
+IFdpZGdpdHMgUHR5IEx0ZDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAv4Ys
+JZ960gHdJUcrhEcqv5BoOBbBVTWDX9I7OqYWUSrOPrqKeWPm8MHBftpzjOyGV+AV
+cCbyAnid8KOGWQLlhwSCYXy0WM8od0/KcSOWPSjfMxehKEtmKvM6UypGukqHRWby
+FyWBouE9iWUJqxX0f9QBI9WSG8azPApRJ/g4JN0CAwEAATANBgkqhkiG9w0BAQUF
+AAOBgQCCe22tXjlEb35h/ibFaKegYIsClNni5qOKSrlipHNMw/OVFRAnm7ehJLrR
+LuZyvD7/DMbCUwKKEKew9MWrsxxbVb0p5JMNwzdP63MQseDseLWNucMQ0JK9qe7Q
+tADVA3fty0A+/AoKp08ur
+-----END CERTIFICATE-----
View
18 ssl_example/nginx.conf
@@ -0,0 +1,18 @@
+server {
+ listen 443;
+ server_name example.com;
+
+ ssl on;
+ ssl_certificate /path/to/example.com-chain.crt;
+ ssl_certificate_key /path/to/example.com-private.key;
+
+ ssl_session_timeout 5m;
+
+ ssl_protocols SSLv2 SSLv3 TLSv1;
+ ssl_ciphers HIGH:!aNULL:!MD5;
+ ssl_prefer_server_ciphers on;
+
+ location / {
+ # ...
+ }
+}

0 comments on commit e83a6e1

Please sign in to comment.