Unable to generate lets encrypt ssl certificate for virtualmin virtual server

Hi All,
I have tried, but cannot figure out what I have done wrong. I have a new Virtualmin install, with external DNS provider and have disabled BIND.
Everything seems to work fine without any DNS issues.
I can browse to www.anewwebsite.com.au without problems, and some checks via mxtoolbox seems to indicate that everything is OK.

However… I cannot get Lets Encrypt to create a certificate for a virtual server. I get the following error, and was hoping someone might have a clue ?

Requesting a certificate for anewwebsite.com.au from Let’s Encrypt …
… request failed : Failed to request certificate :

Parsing account key…
Parsing CSR…
Registering account…
Traceback (most recent call last):
File “/usr/share/webmin/webmin/acme_tiny.py”, line 203, in
File “/usr/share/webmin/webmin/acme_tiny.py”, line 199, in main
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca)
File “/usr/share/webmin/webmin/acme_tiny.py”, line 90, in get_crt
“agreement”: “https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf”,
File “/usr/share/webmin/webmin/acme_tiny.py”, line 47, in _send_signed_request
protected[“nonce”] = urlopen(CA + “/directory”).headers[‘Replay-Nonce’]
File “/usr/lib/python2.7/urllib2.py”, line 154, in urlopen
return opener.open(url, data, timeout)
File “/usr/lib/python2.7/urllib2.py”, line 431, in open
response = self._open(req, data)
File “/usr/lib/python2.7/urllib2.py”, line 449, in _open
‘_open’, req)
File “/usr/lib/python2.7/urllib2.py”, line 409, in _call_chain
result = func(*args)
File “/usr/lib/python2.7/urllib2.py”, line 1240, in https_open
File “/usr/lib/python2.7/urllib2.py”, line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno -2] Name or service not known>


Which version of Virtualmin are you running?

Hi Peter,
Virtualmin version: 5.05.gpl