Use the correct cert when connecting to the LDAP server
authorPaul Wise <pabs@debian.org>
Thu, 6 Nov 2014 10:50:27 +0000 (18:50 +0800)
committerPaul Wise <pabs@debian.org>
Thu, 6 Nov 2014 10:50:27 +0000 (18:50 +0800)
Util.pm

diff --git a/Util.pm b/Util.pm
index 27060d7..92ea455 100644 (file)
--- a/Util.pm
+++ b/Util.pm
@@ -359,7 +359,9 @@ sub UpgradeConnection($) {
   my ($ldap) = @_;
   my $mesg = $ldap->start_tls(
                           verify => 'require',
-                          cafile => '/etc/ssl/certs/spi-cacert-2008.pem'
+                          # Cannot specify the server cert, must specify the CA cert
+                          #cafile => '/etc/ssl/servicecerts/db.debian.org.crt'
+                          cafile => '/etc/ssl/certs/UTN_USERFirst_Hardware_Root_CA.pem'
                           );
   $mesg->sync;
   if ($mesg->code != LDAP_SUCCESS) {