Bncert tool using new certificate for all domains

Keywords: LAMP/MAMP/WAMP - AWS - Technical issue - Secure Connections (SSL/HTTPS)

bnsupport ID: 7a98454b-abf7-8a3a-697c-51e36af3b0b3

bndiagnostic output:

? Apache: Found possible issues
? Resources: Found possible issues
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/
https://docs.bitnami.com/bch/apps/moodle/troubleshooting/deny-connections-bots-apache/

Description:
I am using the AWS Bitnami LAMP AMI on AWS to host multiple WordPress and PHP sites.
I am having an issue when I generate a new SSL certificate for a domain using the BNCert tool it’s updating all the vhosts apache configuration files for all the other domains to use this certificate which invalidates it on those websites, the server has one IP address and I am using vhosts to configure all the domains.

This is how I am configuring the vhosts in apache:

<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /opt/bitnami/apache2/htdocs/example.com
<Directory “/opt/bitnami/apache2/htdocs/example.com”>
Options -Indexes +FollowSymLinks -MultiViews
AllowOverride All
Require all granted

Hi @mbasfour,

Please also note that the Bitnami HTTPS configuration tool is designed to work with one VirtualHost so it modifies the default ServerName parameter in the main conf file (apache2/conf/httpd.conf). If you have custom VirtualHosts, you will need to edit that parameter and use “localhost” as ServerName not to break your configuration. Please also double-check that each vhost configuration file is pointing to the right certificate (for example, satXX.sa is pointing to centreXXXXXXXX.com.crt)

I hope it helps

Ok, I had to use let’s encrypt certbot to generate and set up certificates instead the bitnami cert tool because I wanted a separate certificate for each site

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.