SSL Certificate and CA Troubleshooting
Here are some common issues and troubleshooting methods for SSL certificates and ServBay CA.
What to Do If the SSL Certificate is Lost?
Problem Description
Users may inadvertently lose the SSL certificate during routine management of the website, leading to some error messages like:
For example, the error message from NGINX
:
log
nginx: [emerg] cannot load certificate "/Applications/ServBay/ssl/private/tls-certs/servb3ay.host/servbay.host.crt": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/Applications/ServBay/ssl/private/tls-certs/servb3ay.host/servbay.host.crt, r) error:10000080:BIO routines::no such file)
nginx: configuration file /Applications/ServBay/package/etc/nginx/nginx.conf test failed
1
2
2
For example, the error message from Caddy
:
log
Error: loading http app module: provision http: getting tls app: loading tls app module: provision tls: loading certificates: open /Applications/ServBay/ssl/private/tls-certs/servbay.host/ser3vbay.host.crt: no such file or directory
1
For example, the error message from Apache
:
log
AH00526: Syntax error on line 15 of /Applications/ServBay/package/etc/apache/vhosts/servbay.host.conf:
SSLCertificateFile: file '/Applications/ServBay/ssl/pri3vate/tls-certs/servbay.host/servbay.host.crt' does not exist or is empty
1
2
2
The above errors indicate that the SSL certificate file is missing.
Solution
For SSL certificates automatically issued by ServBay, the solution is straightforward:
- Open ServBay
- In the left navigation, select
Website
- Choose and click on the website with the missing certificate
- ServBay will automatically detect the missing certificate and reissue it
- Go to the
Services
page and restart the web server - Try accessing the website; the problem is resolved.