Update configuration for SSL ca-debian cert store
authorPaul Wise <pabs@debian.org>
Sat, 25 Mar 2017 06:52:02 +0000 (14:52 +0800)
committerPaul Wise <pabs@debian.org>
Sat, 25 Mar 2017 06:52:02 +0000 (14:52 +0800)
Remove AddTrust as it isn't used any more.

Switch from the DST root CA to ISRG on jessie and newer
for Let's Encrypt since it has less intermediate CAs.
The ISRG root isn't available in wheezy ca-certificates.

Document why each CA cert is being used with comments.

modules/ssl/files/ca-certificates-debian-wheezy.conf [new file with mode: 0644]
modules/ssl/files/ca-certificates-debian.conf
modules/ssl/manifests/init.pp

diff --git a/modules/ssl/files/ca-certificates-debian-wheezy.conf b/modules/ssl/files/ca-certificates-debian-wheezy.conf
new file mode 100644 (file)
index 0000000..870aac5
--- /dev/null
@@ -0,0 +1,10 @@
+# This file is under puppet control
+# Only the CAs for debian.org are trusted, see /etc/ssl/ca-debian/README
+
+# Let's Encrypt: used by almost all Debian machines
+# Use the DST root as the ISRG one is not in wheezy yet
+#mozilla/ISRG_Root_X1.crt
+mozilla/DST_Root_CA_X3.crt
+
+# Gandi: used by *.alioth.d.o only
+mozilla/UTN_USERFirst_Hardware_Root_CA.crt
index 0c23a14..a02c012 100644 (file)
@@ -1,5 +1,8 @@
 # This file is under puppet control
 # Only the CAs for debian.org are trusted, see /etc/ssl/ca-debian/README
-mozilla/AddTrust_External_Root.crt
+
+# Let's Encrypt: used by almost all Debian machines
+mozilla/ISRG_Root_X1.crt
+
+# Gandi: used by *.alioth.d.o only
 mozilla/UTN_USERFirst_Hardware_Root_CA.crt
-mozilla/DST_Root_CA_X3.crt
index 9e900be..37d18c1 100644 (file)
@@ -19,9 +19,14 @@ class ssl {
                source => 'puppet:///modules/ssl/ca-certificates.conf',
                notify  => Exec['refresh_normal_hashes'],
        }
+       if (versioncmp($::lsbmajdistrelease, '8') >= 0) {
+               $ca_debian_conf_suffix = ''
+       } else {
+               $ca_debian_conf_suffix = 'wheezy'
+       }
        file { '/etc/ca-certificates-debian.conf':
                mode    => '0444',
-               source => 'puppet:///modules/ssl/ca-certificates-debian.conf',
+               source => "puppet:///modules/ssl/ca-certificates-debian${ca_debian_conf_suffix}.conf",
                notify  => Exec['refresh_ca_debian_hashes'],
        }
        file { '/etc/ca-certificates-global.conf':