This seems to be the one:
Please show that file (if large you can upload it here or through any service like paste.bin).
This seems to be the one:
Please show that file (if large you can upload it here or through any service like paste.bin).
Here it is,
# Default Virtual Host configuration.
<IfVersion < 2.3 >
NameVirtualHost *:80
NameVirtualHost *:443
</IfVersion>
<VirtualHost _default_:80>
DocumentRoot "/opt/bitnami/apache2/htdocs"
<Directory "/opt/bitnami/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3 >
Require all granted
</IfVersion>
</Directory>
# Error Documents
ErrorDocument 503 /503.html
# Bitnami applications installed with a prefix URL (default)
Include "/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf"
</VirtualHost>
# Default SSL Virtual Host configuration.
<IfModule !ssl_module>
LoadModule ssl_module modules/mod_ssl.so
</IfModule>
Listen 443
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !EDH !RC4"
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:/opt/bitnami/apache2/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
<VirtualHost _default_:443>
DocumentRoot "/opt/bitnami/apache2/htdocs"
<Directory "/opt/bitnami/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3 >
Require all granted
</IfVersion>
</Directory>
# Error Documents
ErrorDocument 503 /503.html
# Bitnami applications installed with a prefix URL (default)
Include "/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf"
</VirtualHost>
# Bitnami applications that uses virtual host configuration
Include "/opt/bitnami/apache2/conf/bitnami/bitnami-apps-vhosts.conf"
Does it set “SSLEngine on
” anywhere…?
It has the port 80 vhost - but I don't see the port 443 vhost
Perhaps it is included here:
Let's have a look at what is there:
ls -l /opt/bitnami/apache2/conf/bitnami/bitnami-apps-vhosts.conf
If only one file (not a directory), just show the file here.
@mnordhoff No it does not say in this file
The file bitnami-apps-vhosts.conf
only says
# Bitnami applications installed in a Virtual Host
It actually says port 443 in bitnami.conf
, if I am not wrong
<VirtualHost _default_:443>
DocumentRoot "/opt/bitnami/apache2/htdocs"
OK yes we can use that vhost block.
It seems to only need the basic info on where the cert is.
Add this just after
SSLCertificateFile /opt/bitnami/apache2/conf/server.crt
SSLCertificateKeyFile /opt/bitnami/apache2/conf/server.key
Then restart bitnami
I added the code, now when I stop. It shows the below error
AH00526: Syntax error on line 45 of /opt/bitnami/apache2/conf/bitnami/bitnami.conf:
SSLCertificateFile: file '/opt/bitnami/apache2/conf/server.crt' does not exist or is empty
apache config test fails, aborting
Try going directly to the source file (not the symbolic link):
Change:
SSLCertificateFile /opt/bitnami/apache2/conf/server.crt
SSLCertificateKeyFile /opt/bitnami/apache2/conf/server.key
to:
SSLCertificateFile /etc/lego/certificates/makeyourbrand.crt
SSLCertificateKeyFile /etc/lego/certificates/makeyourbrand.key
And restart again...
It says the same
AH00526: Syntax error on line 45 of /opt/bitnami/apache2/conf/bitnami/bitnami.conf:
SSLCertificateFile: file '/etc/lego/certificates/makeyourbrand.crt' does not exist or is empty
apache config test fails, aborting
please show the updated file:
This is the file now
# Default Virtual Host configuration.
<IfVersion < 2.3 >
NameVirtualHost *:80
NameVirtualHost *:443
</IfVersion>
<VirtualHost _default_:80>
DocumentRoot "/opt/bitnami/apache2/htdocs"
<Directory "/opt/bitnami/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3 >
Require all granted
</IfVersion>
</Directory>
# Error Documents
ErrorDocument 503 /503.html
# Bitnami applications installed with a prefix URL (default)
Include "/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf"
</VirtualHost>
# Default SSL Virtual Host configuration.
<IfModule !ssl_module>
LoadModule ssl_module modules/mod_ssl.so
</IfModule>
Listen 443
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !EDH !RC4"
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:/opt/bitnami/apache2/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
<VirtualHost _default_:443>
DocumentRoot "/opt/bitnami/apache2/htdocs"
SSLCertificateFile /etc/lego/certificates/makeyourbrand.crt
SSLCertificateKeyFile /etc/lego/certificates/makeyourbrand.key
<Directory "/opt/bitnami/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3 >
Require all granted
</IfVersion>
</Directory>
# Error Documents
ErrorDocument 503 /503.html
# Bitnami applications installed with a prefix URL (default)
Include "/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf"
</VirtualHost>
# Bitnami applications that uses virtual host configuration
Include "/opt/bitnami/apache2/conf/bitnami/bitnami-apps-vhosts.conf"
and also the rights to the original file:
ls -l /etc/lego/certificates/makeyourbrand.crt
ls: cannot access '/etc/lego/certificates/makeyourbrand.crt': No such file or directory
That is a problem!
What happened to?:
I think it may still be there (just not visible to your current user/group):
sudo find / -name makeyourbrand.in.crt
This command displays - sudo find / -name makeyourbrand.in.crt
displays
/etc/lego/certificates/makeyourbrand.in.crt
So that means I just need to add this in user group ?
That seems to be the problem.
Try:
sudo chmod 644 /etc/lego/certificates/makeyourbrand.crt
sudo chmod 644 /etc/lego/certificates/makeyourbrand.key
then
ls -l /etc/lego/certificates/
I think you have to also ensure this is being done somewhere.
Try to locate that in apache files:
grep -Ri 'sslengine' /opt/bitnami/apache2/
ADDITIONALLY:
We all missed the TYPOs:
/etc/lego/certificates/makeyourbrand.crt
/etc/lego/certificates/makeyourbrand.key
Should be:
/etc/lego/certificates/makeyourbrand.IN.crt
/etc/lego/certificates/makeyourbrand.IN.key