Well no luck so far I change everything I’ve seen and still looks like the Certificate name mismatch
as far as I see it is still www.example.com Self-signed (
Looking around I see privkey.pem, serever.crt, server.key in my opt/bitnami/apache2/conf
Do they need to be there or they conflict with SSLCertificate at /etc/letsencrypt/live?
If you’re planning on using Certbot to obtain and install certificates, you should probably have your web server configuration only use the files from /etc/letsencrypt/live, and not, for example, copy those files elsewhere on the system.
I don’t know how they got there, I tried Certbot but it didn’t work probably because I use Bitnami.
It did work with webroot but now I have a problem with pointing the site to the certificate.
So I’m looking for ways to get the SSL without fucking up my site completely.
Is it safe to delete those files?
I would suggest not deleting them right away in case they are copies of certificates that you really want for some reason. But I don’t think you should use them in your server configuration.
I didn’t make those copies.
My problem at the moment is to configure the server correctly, I changed the lines in bitnami.conf.
to SSLCertificateFile “/opt/bitnami/apache2/conf/server.crt” SSLCertificateKeyFile "/opt/bitnami/apache2.conf/server.key"
but I still get a mismatch on certificate name it still say www.exemple.com
Any advice?
This is what I get
Error opening Certificate example-cert.pem
140534303303312:error:02001002:system library:fopen:No such file or directory:bss_file.c:402:fopen(‘example-cert.pem’,‘r’)
140534303303312:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:404:
unable to load certificate
Sorry, I didn’t mean the literal filename example-cert.pem. You can put the name of individual files that you’re curious about there in order to see what their contents are.
You need to give the path for each file (indicating what directory it’s inside of or how to find that directory relative to your current directory), not just the filename.