You sent me a message asking about how to do this. There should be lots of tutorials online that explain it. The official one from the Apache project is
https://httpd.apache.org/docs/current/ssl/ssl_howto.html
In Certbotās terms, the SSLCertificateFile
should refer to the fullchain.pem
file at the location that Certbot told you, while the SSLCertificateKeyFile
should refer to the privkey.pem
file at the location that Certbot told you.
If you had used certbot --apache
successfully, it would have installed the certificate by creating a new HTTPS virtual host, in a new Apache site configuration file like the following:
<IfModule mod_ssl.c>
<VirtualHost *:443>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName semler-jenkins.moduscreate.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
SSLCertificateFile /etc/letsencrypt/live/semler-jenkins.moduscreate.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/semler-jenkins.moduscreate.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/semler-jenkins.moduscreate.com/chain.pem
</VirtualHost>
</IfModule>
You might have /etc/letsencrypt/options-ssl-apache.conf
(Iām not sure if it was created), but you would also have to set the DocumentRoot appropriately here because itās not /var/www/html
.
I donāt know anything about Jenkins and I donāt know whether it directly speaks HTTPS or uses a server like Apache as a proxy. For advice about setting up Jenkins, youāll have to ask specifically on this this forum or on another forum dedicated to Jenkins, or look online for a tutorial.