Using letsencrypt certificate for webmin

Hello,

I have created a letencrypt certificate using certbot-auto and my certificate works absolutely fine on www.webuilder.co.uk however I would like to do the same for my webmin which is on address webuilder.co.uk:(port) so into webmin configuration fine I have typed file location which is exactly the same as the one for website which works:

keyfile=/etc/letsencrypt/live/www.webuilder.co.uk-0001/privkey.pem
certfile=/etc/letsencrypt/live/www.webuilder.co.uk-0001/cert.pem
extracas=/etc/letsencrypt/live/www.webuilder.co.uk-0001/fullchain.pem

So that should work but when I go to my webmin, google is giving me this:

ERR_SSL_PROTOCOL_ERROR

What should I do to fix it? I know there is a way because people have done it

What is the rest of the information you have in that section ? My first guess is that you are probably missing a " SSLEngine on"

I think webmin usually needs the key and cert in a single file by default - miniserv.pem

1 Like

ssl=1 so therefore ssl must be enabled, is there a way to combine these files together?

simply concatenate them. From SSH this would be

cat privkey.pem cert.pem > miniserv.pem

2 Likes

works perfect, cheers! not only in this topic but overall you have been a great help :wink:

1 Like

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