root@ucs1:/etc/univention/letsencrypt# systemctl restart apache2 && systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-01-22 08:37:23 PST; 7s ago
Process: 994 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 999 (apache2)
Tasks: 6 (limit: 4915)
Memory: 31.2M
CPU: 965ms
CGroup: /system.slice/apache2.service
├─ 999 /usr/sbin/apache2 -k start
├─1000 /usr/sbin/apache2 -k start
├─1001 /usr/sbin/apache2 -k start
├─1002 /usr/sbin/apache2 -k start
├─1003 /usr/sbin/apache2 -k start
└─1004 /usr/sbin/apache2 -k start
Jan 22 08:37:21 ucs1 systemd[1]: Starting The Apache HTTP Server...
Jan 22 08:37:23 ucs1 systemd[1]: Started The Apache HTTP Server.
root@ucs1:/etc/univention/letsencrypt#
root@ucs1:/etc/univention/letsencrypt# /usr/share/univention-letsencrypt/refresh-cert-cron
Tue Jan 22 08:39:34 PST 2019
Refreshing certificate for following domains:
ucs1.sgvfr.com
Parsing account key...
Parsing CSR...
Found domains: ucs1.sgvfr.com
Getting directory...
Directory found!
Registering account...
Already registered!
Creating new order...
Order created!
Verifying ucs1.sgvfr.com...
Traceback (most recent call last):
File "/usr/share/univention-letsencrypt/acme_tiny.py", line 197, in <module>
main(sys.argv[1:])
File "/usr/share/univention-letsencrypt/acme_tiny.py", line 193, in main
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca, disable_check=args.disable_check, directory_url=args.directory_url, contact=args.contact)
File "/usr/share/univention-letsencrypt/acme_tiny.py", line 149, in get_crt
raise ValueError("Challenge did not pass for {0}: {1}".format(domain, authorization))
ValueError: Challenge did not pass for ucs1.sgvfr.com: {u'status': u'invalid', u'challenges': [{u'status': u'invalid', u'url': u'https://acme-staging-v02.api.letsencrypt.org/acme/challenge/ClloXkJ30bTVisxrS4Icom6Gjrl0qP6hSrO2T-pqYm0/226353534', u'token': u'nOQhCf_9Le09EuL_CkoTwF68JKyKCJUOrqOKSJk1I_8', u'type': u'dns-01'}, {u'status': u'invalid', u'url': u'https://acme-staging-v02.api.letsencrypt.org/acme/challenge/ClloXkJ30bTVisxrS4Icom6Gjrl0qP6hSrO2T-pqYm0/226353535', u'token': u'DYvIADo7nLHMyqkulOn0VpBX1rBSpP6ckVmP-5Bk2aE', u'type': u'tls-alpn-01'}, {u'status': u'invalid', u'validationRecord': [{u'url': u'http://ucs1.sgvfr.com/.well-known/acme-challenge/ZmkbLKoFNSMYdL9Bwb5bUKr32BERv9VBGqIzthmOH_0', u'hostname': u'ucs1.sgvfr.com', u'port': u'80'}], u'url': u'https://acme-staging-v02.api.letsencrypt.org/acme/challenge/ClloXkJ30bTVisxrS4Icom6Gjrl0qP6hSrO2T-pqYm0/226353536', u'token': u'ZmkbLKoFNSMYdL9Bwb5bUKr32BERv9VBGqIzthmOH_0', u'error': {u'status': 400, u'type': u'urn:ietf:params:acme:error:dns', u'detail': u'DNS problem: NXDOMAIN looking up A for ucs1.sgvfr.com'}, u'type': u'http-01'}], u'identifier': {u'type': u'dns', u'value': u'ucs1.sgvfr.com'}, u'expires': u'2019-01-29T16:39:52Z'}
Setting letsencrypt/status
root@ucs1:/etc/univention/letsencrypt#
Well… since this is behind my firewall… all challenges will fail since I don’t have it exposed too the internet… I could add this to my reverse proxy and firewall the crap out of it I guess. I’m going to take a wild guess this will fail a restart…
root@ucs1:/etc/univention/letsencrypt# ucr commit /etc/apache2/sites-available/univention-letsencrypt.conf
File: /etc/apache2/sites-available/univention-letsencrypt.conf
root@ucs1:/etc/univention/letsencrypt#
root@ucs1:/etc/univention/letsencrypt# systemctl restart apache2 && systemctl status apache2
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
root@ucs1:/etc/univention/letsencrypt# systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-01-22 08:43:39 PST; 17s ago
Process: 1389 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE)
Process: 1398 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 999 (code=exited, status=0/SUCCESS)
CPU: 179ms
Jan 22 08:43:39 ucs1 systemd[1]: Starting The Apache HTTP Server...
Jan 22 08:43:39 ucs1 apachectl[1398]: AH00526: Syntax error on line 30 of /etc/apache2/sites-enabled/univention-letsencrypt.c
Jan 22 08:43:39 ucs1 apachectl[1398]: SSLCertificateFile: file '/etc/univention/letsencrypt/signed_chain.crt' does not exist
Jan 22 08:43:39 ucs1 apachectl[1398]: Action 'start' failed.
Jan 22 08:43:39 ucs1 apachectl[1398]: The Apache error log may have more information.
Jan 22 08:43:39 ucs1 systemd[1]: apache2.service: Control process exited, code=exited status=1
Jan 22 08:43:39 ucs1 systemd[1]: Failed to start The Apache HTTP Server.
Jan 22 08:43:39 ucs1 systemd[1]: apache2.service: Unit entered failed state.
Jan 22 08:43:39 ucs1 systemd[1]: apache2.service: Failed with result 'exit-code'.
lines 1-17/17 (END)
I will take a look at setting up an RP entry on my firewall… I really don’t like exposing these servers to the internet… they are specifically only accessible via local network and VPN…
Perhaps I should just remove it… I was going to test it out on one of my UCS servers, but after this it might just be more of a pain… I can always secure the RP and keep internal non-SSL.
I’ll post again after trying a few things.