Problem Description
I’ve been trying to get third party SSL certificates to work, but sympl-ssl
doesn’t seem to be able to see them. I’ve written up my steps in here, but in short I’m using Dehydrated to generate DNS-verified SSL certificates (which generate fine) then trying to load them on a sympl site.
I’ve copied the certificates as an SSL set directory, but when I use sympl-ssl
to select them (as per the wiki), it just errors out with the message No sets found
and I haven’t been able to get any further.
cat > /etc/dehydrated/hooks/deploy-cert/sympl <<EOF
#!/bin/sh
echo 'false' > /srv/\$DOMAIN/config/ssl-provider
mkdir -p /srv/\$DOMAIN/config/ssl/sets/dehydrated
cat "\${CERTFILE}" > /srv/\$DOMAIN/config/ssl/sets/dehydrated/ssl.crt
cat "\${CHAINFILE}" > /srv/\$DOMAIN/config/ssl/sets/dehydrated/ssl.bundle
cat "\${KEYFILE}" > /srv/\$DOMAIN/config/ssl/sets/dehydrated/ssl.key
cat "\${FULLCHAINFILE}" "\${KEYFILE}" > /srv/\$DOMAIN/config/ssl/sets/dehydrated/ssl.combined
sympl-ssl \$DOMAIN --verbose --select dehydrated
EOF
Any Error Messages
sympl@[hostname]:/srv/[subdomain.example.com]/config$ ls -la ssl/sets/dehydrated/
total 24
drwxr-sr-x 2 root sympl 4096 May 1 19:41 .
drwxr-sr-x 3 root sympl 4096 May 1 19:36 ..
-rw-r--r-- 1 root sympl 1827 May 1 19:41 ssl.bundle
-rw-r--r-- 1 root sympl 3748 May 1 19:41 ssl.combined
-rw-r--r-- 1 root sympl 1562 May 1 19:41 ssl.crt
-rw-r--r-- 1 root sympl 359 May 1 19:41 ssl.key
sympl@[hostname]:/srv/[subdomain.example.com]/config$ sudo sympl-ssl [subdomain.example.com] --verbose --select dehydrated
[sudo] password for sympl:
Certificate sets for [subdomain.example.com]:
** No sets found
Environment
- Sympl Version 12:
- Sympl Testing Version? No
- Debian Version: Bookworm
- Hardware Type? Virtual
- Hosted On? DNS on Mythic, VPS on Proxmox locally