# Certbot not working to install SSL certificate

**URL:** <https://forum.rasa.com/t/certbot-not-working-to-install-ssl-certificate/28008>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [April 24, 2020, 3:10pm UTC](https://forum.rasa.com/t/certbot-not-working-to-install-ssl-certificate/28008 "2020-04-24T15:10:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![captain-curious](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/captain-curious/32/8311_2.png) [@captain-curious](https://forum.rasa.com/u/captain-curious)\
**Post date:** [April 24, 2020, 3:10pm UTC](https://forum.rasa.com/t/certbot-not-working-to-install-ssl-certificate/28008/1 "2020-04-24T15:10:22Z")

</div>

I’m following the instructions in [Rasa Masterclass 11](https://blog.rasa.com/the-rasa-masterclass-handbook-episode-11/) to install an SSL certificate. I have set up a VM instance on Google Cloud Platform, established an SSH connection to the VM on command line, stopped the docker container, installed certbot, and run `sudo certbot certonly`. I’m getting the following error:

```
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for mydomain.com
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. mydomain.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://mydomain.com/.well-known/acme-challenge/XhXLE_fFQsdgArgWW3cnMVIlSxe2rU1i8E96p0pGbPg [00.000.000.000]: "<!doctype html><html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1,max"

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: mydomain.com
   Type: unauthorized
   Detail: Invalid response from
   http://mydomain.com/.well-known/acme-challenge/XhXLE_fFQsdgArgWW3cnMVIlSxe2rU1i8E96p0pGbPg
   [00.000.000.000]: "<!doctype html><html lang=\"en\"><head><meta
   charset=\"utf-8\"><meta name=\"viewport\"
   content=\"width=device-width,initial-scale=1,max"

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.

```

(I edited out our url and ip address)

We’ve tried with three different URLs hosted on both Google Domains and Dreamhost.

Any ideas?

---

<div class="post-metadata">

**Author:** ![k1m](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/k1m/32/8518_2.png) [@k1m](https://forum.rasa.com/u/k1m)\
**Post date:** [April 24, 2020, 4:10pm UTC](https://forum.rasa.com/t/certbot-not-working-to-install-ssl-certificate/28008/2 "2020-04-24T16:10:49Z")

</div>

I’ve had the same kind of problems earlier.

Is your port 80 open and have you double checked that the domain type is A and the right ip?

---

<div class="post-metadata">

**Author:** ![captain-curious](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/captain-curious/32/8311_2.png) [@captain-curious](https://forum.rasa.com/u/captain-curious)\
**Post date:** [April 24, 2020, 5:36pm UTC](https://forum.rasa.com/t/certbot-not-working-to-install-ssl-certificate/28008/3 "2020-04-24T17:36:16Z")

</div>

Thanks @k1m! The domain type is A and the ip is correct. The domain is working for http:// , i.e. I can go to the domain to get to our Rasa X instance but it’s not secure.

How do I check if my port 80 is open?

---

<div class="post-metadata">

**Author:** ![captain-curious](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/captain-curious/32/8311_2.png) [@captain-curious](https://forum.rasa.com/u/captain-curious)\
**Post date:** [April 24, 2020, 11:37pm UTC](https://forum.rasa.com/t/certbot-not-working-to-install-ssl-certificate/28008/4 "2020-04-24T23:37:53Z")

</div>

Okay I fixed it with a big frustrating “turn it off and turn it back on again.”

I started a new VM instance in Google Cloud following the instructions in [Rasa Masterclass Episode 9](https://blog.rasa.com/the-rasa-masterclass-handbook-episode-9/) (same as I had before). I then followed the same instructions from [Rasa Masterclass Episode 11](https://blog.rasa.com/the-rasa-masterclass-handbook-episode-11/) to install the SSL and it worked this time.

Oh and for anyone who’s a n00b like me and was also wondering about opening port 80… I did forget to do that at one point and then remembered I had to close docker during the install, as explained in Episode 11.
