]> granicus.if.org Git - postgresql/commitdiff
Fix certificate subjects in ldap test
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 8 Aug 2019 18:57:48 +0000 (14:57 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 8 Aug 2019 19:02:13 +0000 (15:02 -0400)
openssl doesn't like lower case subject attribute names. Error observed
in buildfarm results.

Backpatch to release 11.

src/test/ldap/t/001_auth.pl

index 5efb87aca307ae3066ce684c328b8a561d15ae5d..daa2270cdfa4c90141d81e90b60b275bcd4971ad 100644 (file)
@@ -102,10 +102,10 @@ mkdir $slapd_certs  or die;
 
 system_or_bail "openssl", "req", "-new", "-nodes", "-keyout",
   "$slapd_certs/ca.key", "-x509", "-out", "$slapd_certs/ca.crt", "-subj",
-  "/cn=CA";
+  "/CN=CA";
 system_or_bail "openssl", "req", "-new", "-nodes", "-keyout",
   "$slapd_certs/server.key", "-out", "$slapd_certs/server.csr", "-subj",
-  "/cn=server";
+  "/CN=server";
 system_or_bail "openssl", "x509", "-req", "-in", "$slapd_certs/server.csr",
   "-CA", "$slapd_certs/ca.crt", "-CAkey", "$slapd_certs/ca.key",
   "-CAcreateserial", "-out", "$slapd_certs/server.crt";