smallstep au lieu de mkcert dans la vm

This commit is contained in:
Francois Lesueur
2023-05-26 11:36:05 +02:00
parent 4117afd993
commit 41e7591163
6 changed files with 41 additions and 55 deletions

View File

@ -23,9 +23,8 @@ if [ -f /clawsmail/addclawsuser.sh ]; then
fi
# On place les certifs
if [ -d letsencrypt ]; then
cp -ar letsencrypt /etc/
cp /etc/letsencrypt/local/rootCA.pem /usr/local/share/ca-certificates/root.crt
if [ -f tls/root_ca.crt ]; then
cp -ar tls/root_ca.crt /usr/local/share/ca-certificates/
/usr/sbin/update-ca-certificates --fresh
fi
@ -34,7 +33,7 @@ echo -e '{
"policies": {
"Certificates": {
"ImportEnterpriseRoots": true,
"Install": ["/etc/ssl/certs/root.pem"]
"Install": ["/etc/ssl/certs/root_ca.pem"]
}
}
}' > /usr/lib/firefox-esr/distribution/policies.json