SSL support on nginx, Godaddy SSL certificate -


following godaddy instructions, have generated private key , corresponding csr:

openssl req -new -newkey rsa:2048 -nodes -keyout mydomain.key -out mydomain.csr 

then, uploaded mydomain.csr godaddy, getting zip file containing ssl , intermediate certificates, concatenated have single crt file:

cat mysslcert.crt intermediate.crt >> mydomain.crt 

using official nginx image docker hub, configuration following:

server {     listen 80;     listen 443 ssl;     keepalive_timeout 10m;     root /var/www;     server_name mydomain.com;      ssl on;     ssl_certificate /etc/ssl/mydomain.crt;     ssl_certificate_key /etc/ssl/mydomain.key;     ssl_protocols tlsv1 tlsv1.1 tlsv1.2;     ssl_prefer_server_ciphers on; ... 

the files accessible (checked wrong paths). error i'm getting following:

    ssl_ctx_use_privatekey_file("/etc/ssl/mydomain.key") failed (ssl: error:0b080074:x509 certificate routines:x509_check_private_key:key values mismatch) 

the comparison of md5 tells me they're different, doing wrong?

thanks @tarunlalwani, problem certificate can download godaddy takes time refreshed when new csr uploaded. solution had wait actual email indicating certificate ready downloaded.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -