I moved a client over to my own AWS instance from another AWS instance - so revoked the SSL cert on that instance and reissued it on my one. But the site is now claiming that the certificate us untrusted - working on some devices and not on others - ie Apple and some browsers. It is showing as certificate valid on android chrome.
why? Revoking is wrong if the private key isn't stolen. Please stop that.
Then the result is expected. certonly doesn't install the certificate, so you use the old certificate. And Chrome doesn't complain if a certificate is revoked.
CN=hello-chef.co.za
26.06.2020
24.09.2020
expires in 51 days hello-chef.co.za, www.hello-chef.co.za - 2 entries
...
Revoked: The certificate is revoked.
Install one of the new created certificates, you have two:
PS: Terrible. Sslshopper doesn't check if the certificate is revoked. There is the 51-days certificate shown - valid. No, it's not valid, it's revoked.
Common name: hello-chef.co.za SANs: hello-chef.co.za, www.hello-chef.co.za Valid from June 26, 2020 to September 24, 2020 Serial Number: 034cb5c7150d1d059856df85adc66cd0bab3 Signature Algorithm: sha256WithRSAEncryption Issuer: Let's Encrypt Authority X3
You can see what certificates you currently have with:
sudo certbot certificates
Your Apache configuration will have been configured with SSLCertificateFile and SSLCertificateKeyFile which correspond to the Certificate Path and Private Key Path that appear in the list, respectively.
You can update your Apache configuration to use the certificate that you want to use.
You need to make sure that you reload Apache after a certificate is renewed or replace, or else Apache won’t read it.
You can also ask Certbot to do that configuration and reload for you:
sudo certbot install --apache --cert-name <name from the list>
If @umvahed is the proper owner of the hostname and he/she can't be sure the private key on the previous AWS instance (which sounds like some kind of shared instance looking at the specific mentioning of "my own instance" for the new AWS instance) won't be misused, I think it's a good practice to revoke the previous certificate.