WeBWorK Main Forum

Using CertBot on Ubutnu 20.04

Using CertBot on Ubutnu 20.04

by Sean Fitzpatrick -
Number of replies: 4

Does anyone have recent experience using CertBot?

Our IT is moving away from commercial certs to CertBot. But when I run CertBot with the --apache option, I get an error, because CertBot doesn't like the <Perl> line in the webwork.conf Apache configuration file.

In reply to Sean Fitzpatrick

Re: Using CertBot on Ubutnu 20.04

by Sean Fitzpatrick -
I wasn't able to get it to work with the --apache option.
But I was able to do:

1. sudo certbot certonly --webroot
(enter /var/www/html for webroot)
2. manually configure /etc/apache2/sites-available/default-ssl.conf
In reply to Sean Fitzpatrick

Re: Using CertBot on Ubutnu 20.04

by Glenn Rice -

I have seen the same issue.  The solution that I used was to disable the webwork2 apache2 configuration temporarily, update the certificates with certbot, and then re-enable webwork2.

Note that this is not an issue with WeBWorK 2.18 as that no longer uses modperl2.

In reply to Glenn Rice

Re: Using CertBot on Ubutnu 20.04

by Alex Jordan -

With 2.17, I have done what Glenn describes. I renamed the webwork2.conf symlink in the apache config folder to something that didn't end in .conf. Made the cert. Then renamed it back.

In reply to Alex Jordan

Re: Using CertBot on Ubutnu 20.04

by Sean Fitzpatrick -

I decided to install using a method that works as-is, partly because I wasn't sure what the consequences would be for renewal.

I'll be interested to see how the new setup works out (and how my IT will react to running a webserver called "hypnotoad").