So LE is working Virtualmin 6.01 Webmin 1.860
For maindomain ok
For virtual subserver creating also ok
Then adding this (subdomain) to the list with maindomain: (Request certificate for Domain names listed here)
New request is then working, but automated renew wasn’t ( so working for months)
The ssl keypaths i did changed to the maindomain keys ofcourse.
After the error for automate renewal i did it manual, same error, after that i did it all over so, removing sudomain out of the list, then manual LEcert for the subdomain and setting keypath to maindomain again, putting subdomain in maindomainlist back, then LE cert maindomain with the subdomain in list then working again.
Ofcourse i had to remove the www. for the subdomain, this could be done also with the domainnames list.
So is it possible i think to write or link the "http://sub.maindomain/.well-known/acme-challenge/ " somewhere else in maindomain where also at renewal?
Probably this is causing problem i hope/think?
I don’t understand wen doing it all over manually it works as it did initial?
Below message i used maindomain and sub/maindomain , also replaced key/filename with vvv
autodiscover.maindomain verified!
Verifying sub.maindomain…
Wrote file to /var/www/html/maindomain/public_html/.well-known/acme-challengevvv, but couldn’t download http://sub.maindomain/.well-known/acme-challenge/vvvv
Traceback (most recent call last):
File “/usr/libexec/webmin/webmin/acme_tiny.py”, line 235, in
main(sys.argv[1:])
File “/usr/libexec/webmin/webmin/acme_tiny.py”, line 231, in main
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, args.dns_hook, args.cleanup_hook, log=LOGGER, CA=args.ca)
File “/usr/libexec/webmin/webmin/acme_tiny.py”, line 184, in get_crt
domain, challenge_status))
ValueError: sub.maindomain challenge did not pass: {u’status’: u’invalid’, u’validationRecord’: [{u’addressesResolved’: [u’vvv’], u’url’: u’http://sub.maindomain/.well-known/acme-challenge/vvvv’, u’hostname’: u’sub.maindomain’, u’addressesTried’: [], u’addressUsed’: u’vvvv::1’, u’port’: u’80’}], u’keyAuthorization’: u’vvvv’, u’uri’: u’https://acme-v01.api.letsencrypt.org/acme/challenge/vvv’, u’token’: u’vvv’, u’error’: {u’status’: 403, u’type’: u’urn:acme:error:unauthorized’, u’detail’: u’Invalid response from http://sub.maindomain/.well-known/acme-challenge/vvvv: “\n\n404 Not Found\n\n
Not Found
\n<p”’}, u’type’: u’http-01’}When i do this with sub as alias and no webspace then no problems, but when you need webspace and then not as alias, but virtual subserver then not working ok