Overview
In some on-premise environments, after installing a new certificate, you could face a known issue where the Hubshare nginx proxy service is stuck in a paused state because the script couldn't extract the certificate properly.
If your Hubshare nginx proxy is in that situation:
You can confirm that you are indeed facing this known issue, check nginx logs by going to this path:
C:ginxginx-1.25.0\logs
The nginx version can differ, but if you have an error.log file that contains this line:
SSL_CTX_load_verify_locations("C:ginxginx-1.25.0/conf/certs/RootAndIntermediateCertificates.crt") failed (SSL: error:0B084088:x509 certificate routines:X509_load_cert_crl_file:no certificate or crl found)
This article will help you fix this issue.
Solution
- Go to this path C:ginxginx-1.25.0\conf\certs (the nginx version can be different)
- The folder should look like this:
The fact that the RootAndIntermediateCertificates.crt is 0kb confirms that the extraction didn't go until the end, due to various reasons, the most common being that the .pfx certificate didn't contain that sub certificate. - Duplicate the CertificateCoveringAllSites.crt and rename it to "RootAndIntermediateCertificates.crt", and replace the one that has 0 kb.
- Go back to your Services and restart the Hubshare nginx proxy service. It should now run fine.
