跳至內容

Lightsail bncert-tool fails certificate creation

0

I have an existing cert for my site but that cert contains several domains. I no longer own one of the domains in the cert. My cert has expired and cannot be renewed because I do not own the one domain. I cannot create a new cert because the bncert-tool fails trying to revoke the existing cert. The error is that you cannot revoke an expired cert.

Is there any way around this? I've tried to manually delete the cert but the bncert-tool fails saying the installation is not valid.

thx

已提問 4 個月前檢視次數 56 次
1 個回答
0

This is a common issue with the Bitnami certificate tool (bncert-tool) when dealing with expired certificates that include domains you no longer own.

To resolve this issue, you can try the following steps:

  1. First, back up your current SSL configuration files:
sudo cp /opt/bitnami/apache2/conf/server.crt /opt/bitnami/apache2/conf/server.crt.bak
sudo cp /opt/bitnami/apache2/conf/server.key /opt/bitnami/apache2/conf/server.key.bak
sudo cp /opt/bitnami/apache2/conf/server-ca.crt /opt/bitnami/apache2/conf/server-ca.crt.bak
  1. Try resetting the certificates by following Bitnami's "Resetting the certificates" procedure, which should allow you to run the bncert-tool again as if it were a fresh installation.

  2. If the bncert-tool still fails, you might want to consider using Certbot directly for more control over your Let's Encrypt certificates. This approach can bypass the limitations of the bncert-tool.

  3. Another option is to use the "Set up your website" tool in Lightsail, which can install certificates for your WordPress site and might handle this situation better than the bncert-tool.

  4. If you're using Cloudflare for DNS management, check if there are any CAA records that might be preventing new certificate issuance. Cloudflare sometimes adds these automatically, which can block other Certificate Authorities from issuing certificates.

Remember to always back up your WordPress installation and database before making significant changes to your SSL configuration. If these steps don't resolve your issue, you may need to contact AWS support for further assistance with your specific situation.
Sources
Replacing a TSL certificate on LightSail | AWS re:Post
Lightsail Certificates: Certificate validation always fails with external DNS managed by Cloudflare | AWS re:Post
LightSail: Bitnami bncert-tool succeeds but TLS cert was revoked | AWS re:Post

已回答 4 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。