From: Andrew Dunstan Date: Thu, 8 Aug 2019 18:57:48 +0000 (-0400) Subject: Fix certificate subjects in ldap test X-Git-Tag: REL_12_BETA4~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4116420baeae614a2711e156f0c4e58adad172ba;p=postgresql Fix certificate subjects in ldap test openssl doesn't like lower case subject attribute names. Error observed in buildfarm results. Backpatch to release 11. --- diff --git a/src/test/ldap/t/001_auth.pl b/src/test/ldap/t/001_auth.pl index 5efb87aca3..daa2270cdf 100644 --- a/src/test/ldap/t/001_auth.pl +++ b/src/test/ldap/t/001_auth.pl @@ -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";