nginx - SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch but modulus match -
i have nginx server startssl free certificate expire soon. wanted renew it.
openssl req -new -sha256 -nodes -days 365 -newkey rsa:2048 -keyout ssl.key -out ssl.csr where enter informations needed certificate generation. pasted csr website , got signed certificate domain , 2 subdomain on main domain.
after load certificate server output error:
feb 05 17:46:19 systemd[1]: unit nginx.service entered failed state. feb 05 17:47:13 nginx[4514]: nginx: [emerg] ssl_ctx_use_privatekey_file("/etc/nginx/ssl/nginx.key") failed (ssl: error:0b080074:x509 certificate routines:x509_check_private_key:key values mismatch feb 05 17:47:13 nginx[4514]: nginx: configuration file /etc/nginx/nginx.conf test failed feb 05 17:47:13 systemd[1]: nginx.service: control process exited, code=exited status=1 feb 05 17:47:13 systemd[1]: failed start high performance web server , reverse proxy server. i tested modulus these commands:
openssl x509 -noout -modulus -in nginx.crt | openssl md5 openssl rsa -noout -modulus -in nginx.key | openssl md5 openssl req -noout -modulus -in ssl.csr | openssl md5 and match.
startssl provide certificate bundle intermediate certificate in it. found can fail if not in correct order, tryed both of them first certificate without success.
edit: tried key , certificate on server nginx 1.9.3 , working. certificate ok server not.
Comments
Post a Comment