How to use certbot on azure debian 9 web app


#1

Hey,

I cannot for the life of me work out how to get the cert to work,

Im pretty sure i got one generated, it even refers to it on subsequent installation attempts, but azure doesnt play normal i gotta get dirty and work it through.

I have another server on ubunto 14 (trusty) if needed to generate the cert elsewhere, but if someone could either walk me through it or point me to the process i would much appreciate.

as it stands now, when i go to https i get a certificate warning that its not for the right site, i think its because the azure domain (blueinnredditch.azurewebsites.net) seems to be exposed but it might be irrelevant

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
www.blueinn.co.uk

I ran this command:
certbot --authenticator webroot --installer apache

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which names would you like to activate HTTPS for?

1: www.blueinn.co.uk

Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter ‘c’ to cancel):1
Cert not yet due for renewal

You have an existing certificate that has exactly the same domains or certificate name you requested and isn’t close to expiry.
(ref: /etc/letsencrypt/renewal/www.blueinn.co.uk.conf)

What would you like to do?

1: Attempt to reinstall this existing certificate
2: Renew & replace the cert (limit ~5 per 7 days)

Select the appropriate number [1-2] then [enter] (press ‘c’ to cancel): 1
Keeping the existing certificate
Deploying Certificate to VirtualHost /etc/apache2/sites-available/000-default-le-ssl.conf

Please choose whether HTTPS access is required or optional.

1: Easy - Allow both HTTP and HTTPS access to these sites
2: Secure - Make all requests redirect to secure HTTPS access

Select the appropriate number [1-2] then [enter] (press ‘c’ to cancel): 1


Congratulations! You have successfully enabled https://www.blueinn.co.uk

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=www.blueinn.co.uk

My web server is (include version):
Server version: Apache/2.4.25 (Debian)

The operating system my web server runs on is (include version):
debian 9.3
My hosting provider, if applicable, is:
azure
I can login to a root shell on my machine (yes or no, or I don’t know):
yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
no


#2

Hi,

Are you using azure web apps, if so you can refer to this tutorial (credit :azure):

For azure websites:

Thank you


#3

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