My caddyfiles
Find a file
2023-12-13 21:58:33 +01:00
conf.d Initial commit of repo 2023-12-13 21:58:33 +01:00
systemd Initial commit of repo 2023-12-13 21:58:33 +01:00
Caddyfile Initial commit of repo 2023-12-13 21:58:33 +01:00
README.md Initial commit of repo 2023-12-13 21:58:33 +01:00

SSL / ACME

Installing on arch

pacman -S caddy
pacman -S acme.sh socat

adding certs to trust db

trust anchor --store internal.root.crt 
trust anchor --remove internal.root.crt

Useful openssl cmds

openssl x509 -text -noout -in foo.crt
openssl s_client -connect acme.smex.lan:443

Setting up our custom PKI

	pki {
		ca smex {
			name                  "Smex Inc"
#			root_cn               <name>
#			intermediate_cn       <name>
#			intermediate_lifetime <duration>
			# if using own custom signed cert, e.g. if you already have an internal CA and want to use certs signed by it
#			root {
#				format <format>
#				cert   <path>
#				key    <path>
#			}
#			intermediate {
#				format <format>
#				cert   <path>
#				key    <path>
#			}
		}
	}