Generate and deploy certificate using: Letsencrypt + Docker + AWS


I'm trying to generate a certificate in my local (MacBook) environment which I can package in my Docker image and deploy into my AWS environment via Kubernetes.

I've scoured sources online for a solution to this but I'm unable to find the details I need.

From my macbook:

sudo certbot certonly -a standalone -d my.domain

Gives me this error:

Failed authorization procedure. my.domain (http-01): urn:acme:error:unauthorized :: 
The client lacks sufficient authorization :: Invalid response from 
QD73kytTZnHfH5mK5lEZUJc: "{"timestamp":"2018-04-22T22:33:40.845+0000","status":404,
"error":"Not Found","message":"No message available","path":"/.well-kno"

Clearly, I need a way to prove that I own my own domain. How can I do this locally?

-- wild_nothing

1 Answer


In order to verify ownership of the domain from your macbook you have these two options as stated in the certbot docs:

While the standalone option does not require web server software it does require that it is run on the target web server - it is therefore not what you need to do and will result in the failure reported in your question.

-- Clive Makamara
Source: StackOverflow