diff --git a/cloudserver.md b/cloudserver.md index c269101f..d0b8d372 100644 --- a/cloudserver.md +++ b/cloudserver.md @@ -93,8 +93,8 @@ Configure the back-end server ip address: Install the SSL private key: # Copy the private key - sudo cp ocpu2017.key /etc/ssl/private/ocpu2017.key - sudo chmod 600 /etc/ssl/private/ocpu2017.key + sudo cp ocpu2017.key /etc/letsencrypt/live/ocpu.io/privkey.pem + sudo chmod 600 /etc/letsencrypt/live/ocpu.io/privkey.pem Enable the ocpu.io site diff --git a/debian/changelog b/debian/changelog index 49a6577e..34c82861 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -opencpu (2.2.0-bionic0) bionic; urgency=low +opencpu (2.2.0-bionic1) bionic; urgency=low * Debian package with OpenCPU software. See www.opencpu.org diff --git a/debian/opencpu-cache.links b/debian/opencpu-cache.links index c8e31d93..5311cb90 100644 --- a/debian/opencpu-cache.links +++ b/debian/opencpu-cache.links @@ -1,2 +1 @@ /usr/lib/opencpu/init.d/opencpu-cache /etc/init.d/opencpu-cache -/usr/lib/opencpu/certs/ocpu2017.pem /etc/ssl/certs/ocpu2017.pem diff --git a/opencpu-cache/certs/ocpu2017.pem b/opencpu-cache/certs/ocpu2017.pem deleted file mode 100644 index 850bf401..00000000 --- a/opencpu-cache/certs/ocpu2017.pem +++ /dev/null @@ -1,98 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIFQzCCBCugAwIBAgIRAPGjWNTfd7Bef4pe1rXHbDIwDQYJKoZIhvcNAQELBQAw -gZAxCzAJBgNVBAYTAkdCMRswGQYDVQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAO -BgNVBAcTB1NhbGZvcmQxGjAYBgNVBAoTEUNPTU9ETyBDQSBMaW1pdGVkMTYwNAYD -VQQDEy1DT01PRE8gUlNBIERvbWFpbiBWYWxpZGF0aW9uIFNlY3VyZSBTZXJ2ZXIg -Q0EwHhcNMTcwNDA4MDAwMDAwWhcNMjAwNDA3MjM1OTU5WjBWMSEw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jw5dhHk3QBN39bSsHNA7qxcS1u80GH4r6XnTq1dFDK8o+tDb5VCViLvfhVdpfZLY -Uspzgb8c8+a4bmYRBbMelC1/kZWSWfFMzqORcUx8Rww7Cxn2obFshj5cqsQugsv5 -B5a6SE2Q8pTIqXOi6wZ7I53eovNNVZ96YUWYGGjHXkBrI/V5eu+MtWuLt29G9Hvx -PUsE2JOAWVrgQSQdso8VYFhH2+9uRv0V9dlfmrPb2LjkQLPNlzmuhbsdjrzch5vR -pu/xO28QOG8= ------END CERTIFICATE----- diff --git a/opencpu-cache/nginx/sites-available/opencpu b/opencpu-cache/nginx/sites-available/opencpu index f26491ba..e4e67484 100644 --- a/opencpu-cache/nginx/sites-available/opencpu +++ b/opencpu-cache/nginx/sites-available/opencpu @@ -26,7 +26,6 @@ server { port_in_redirect off; # Enable HTTPS - ssl on; ssl_session_timeout 5m; ssl_protocols SSLv3 TLSv1; ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP; diff --git a/opencpu-cache/nginx/sites-available/opencpu-homepage b/opencpu-cache/nginx/sites-available/opencpu-homepage index 297c09e1..3ad52a17 100644 --- a/opencpu-cache/nginx/sites-available/opencpu-homepage +++ b/opencpu-cache/nginx/sites-available/opencpu-homepage @@ -10,15 +10,14 @@ server { # Main homepage server { - listen 8007; + listen 8007 ssl; server_name www.opencpu.org; # For iptables prerouting port_in_redirect off; - ssl on; - ssl_certificate /etc/ssl/certs/ocpu2017.pem; - ssl_certificate_key /etc/ssl/private/ocpu2017.key; + ssl_certificate /etc/letsencrypt/live/ocpu.io/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/ocpu.io/privkey.pem; location / { proxy_pass http://jeroen.github.io/opencpu-pages/; @@ -41,11 +40,10 @@ server { } server { - listen 8007; + listen 8007 ssl; server_name opencpu.org blog.opencpu.org; - ssl on; - ssl_certificate /etc/ssl/certs/ocpu2017.pem; - ssl_certificate_key /etc/ssl/private/ocpu2017.key; + ssl_certificate /etc/letsencrypt/live/ocpu.io/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/ocpu.io/privkey.pem; rewrite ^ https://www.opencpu.org permanent; } @@ -58,11 +56,10 @@ server { } server { - listen 8007 default_server; + listen 8007 ssl default_server; server_name ""; return 444 "Invalid opencpu vhost: $host\n"; default_type "text/plain"; - ssl on; - ssl_certificate /etc/ssl/certs/ocpu2017.pem; - ssl_certificate_key /etc/ssl/private/ocpu2017.key; + ssl_certificate /etc/letsencrypt/live/ocpu.io/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/ocpu.io/privkey.pem; } diff --git a/opencpu-cache/ocpu.io/ocpu-io b/opencpu-cache/ocpu.io/ocpu-io index 10f653ce..591d967a 100644 --- a/opencpu-cache/ocpu.io/ocpu-io +++ b/opencpu-cache/ocpu.io/ocpu-io @@ -15,9 +15,8 @@ server { listen 8007 ssl http2; include /usr/lib/opencpu/ocpu.io/ocpu-cran.conf; - ssl on; - ssl_certificate /etc/ssl/certs/ocpu2017.pem; - ssl_certificate_key /etc/ssl/private/ocpu2017.key; + ssl_certificate /etc/letsencrypt/live/ocpu.io/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/ocpu.io/privkey.pem; ssl_session_timeout 5m; ssl_protocols SSLv3 TLSv1; ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP; @@ -34,9 +33,8 @@ server { listen 8007 ssl http2; include /usr/lib/opencpu/ocpu.io/ocpu-github.conf; - ssl on; - ssl_certificate /etc/ssl/certs/ocpu2017.pem; - ssl_certificate_key /etc/ssl/private/ocpu2017.key; + ssl_certificate /etc/letsencrypt/live/ocpu.io/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/ocpu.io/privkey.pem; ssl_session_timeout 5m; ssl_protocols SSLv3 TLSv1; ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP; @@ -55,7 +53,6 @@ server { server_name ocpu.io; rewrite ^ https://www.opencpu.org/demo.html redirect; - ssl on; - ssl_certificate /etc/ssl/certs/ocpu2017.pem; - ssl_certificate_key /etc/ssl/private/ocpu2017.key; + ssl_certificate /etc/letsencrypt/live/ocpu.io/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/ocpu.io/privkey.pem; }