Unauthorized error


#1

What I want:
I am going to install certificate for ruby on rails web app. The rails app is hosted on digital ocean. I got an “Unauthorized error” when installing certificate. I am saying the detailed track.

What I have done for certificate installation.
I followed the url ubuntutrusty-nginx. OS is ubuntu14.04 in digital ocean and I am using nginx for http service. I walked through the commands from the guide. When running “./path/to/certbot-auto certonly” I got the following error.

Error
Type: unauthorized
Detail: Invalid response from

Please help me
jin


#2

@jinhong,

First step will be to get nginx able to serve a webpage. At the moment, you are getting a 502 Bad Gateway error on any page you attempt to load.

I would check you nginx configuration (try Digital Ocean’s tutorials for some guides, https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04 might be useful).

Then see if you can put a test file in the /.well-known/acme-challenge/ directory and load that successfully. Once you can, you should be able to run the certbot install and get the certificate.

:smiley:


#3

I have configured the nginx and confirmed with that url with .well-known.
Fixed. Thanks


#4

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