Might need a little help please.
I understand that I needed to add the mail.mydomain.co.uk, and from what I read I should do:-
db hosts setprop mail.mydomain.co.uk letsencryptSSLcert enabled
It states in the contrib info that you need to do:-
For each DOMAIN that you want to be included in the certificate, run this command:
db domains setprop $DOMAIN letsencryptSSLcert enabled
In my case do I need to do that? was not sure? and did....Sorry to be such a dunce!
Anyway, now I got this :-
[root@mail ~]# dehydrated -c
# INFO: Using main config file /etc/dehydrated/config
Processing mydomain.co.uk
+ Signing domains...
+ Generating private key...
+ Generating signing request...
+ Requesting authorization for mydomain.co.uk...
+ 1 pending challenge(s)
+ Deploying challenge tokens...
+ Responding to challenge for mydomain.co.uk authorization...
+ Cleaning challenge tokens...
+ Challenge validation has failed
ERROR: Challenge is invalid! (returned: invalid) (result: {
"type": "http-01",
"status": "invalid",
"error": {
"type": "urn:acme:error:unauthorized",
"detail": "Invalid response from
http://mydomain.co.uk/.well-known/acme-challenge/PnDeek_iiwZ48bgVqfNgyashNw67UK__d7D_Qo3L4iw [212.69.40.200]: \"\u003c!DOCTYPE HTML PUBLIC \\\"-//IETF//DTD HTML 2.0//EN\\\"\u003e\\n\u003chtml\u003e\u003chead\u003e\\n\u003ctitle\u003e404 Not Found\u003c/title\u003e\\n\u003c/head\u003e\u003cbody\u003e\\n\u003ch1\u003eNot Found\u003c/h1\u003e\\n\u003cp\"",
"status": 403
},
"uri": "
https://acme-staging.api.letsencrypt.org/acme/chall-v3/7907347/motSYQ",
"token": "PnDeek_iiwZ48bgVqfNgyashNw67UK__d7D_Qo3L4iw",
"validationRecord": [
{
"url": "
http://mydomain.co.uk/.well-known/acme-challenge/PnDeek_iiwZ48bgVqfNgyashNw67UK__d7D_Qo3L4iw",
"hostname": "mydomain.co.uk",
"port": "80",
"addressesResolved": [
"212.69.40.200"
],
"addressUsed": "212.69.40.200"
}
]
})
[root@mail ~]# config show letsencrypt
letsencrypt=service
ACCEPT_TERMS=yes
configure=none
email=admin@mydomain.co.uk
hookScript=disabled
status=test
The IP ending in 200 is my ISPs webserver.
Thanks for all the help.
Paul.