[18:31:41.245](0.042s) # setting up data directory # Checking port 51732 # Found port 51732 Name: primary Data directory: /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata Backup directory: /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/backup Archive directory: /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/archives Connection string: port=51732 host=/tmp/L0Gw_d_pnU Log file: /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log [18:31:41.250](0.005s) # initializing database system by copying initdb template # Running: cp -RPp /tmp/cirrus-ci-build/tmp_install/initdb-template /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata # Running: /tmp/cirrus-ci-build/src/test/ssl/../../../src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata ### Starting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log -o --cluster-name=primary start waiting for server to start.... done server started # Postmaster PID for node "primary" is 35236 [18:31:41.629](0.380s) ok 1 - ssl_library parameter ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 35460 [18:31:43.153](1.524s) # testing password-protected keys ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... stopped waiting pg_ctl: could not start server Examine the log output. # pg_ctl restart failed; see logfile for details: /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log # No postmaster PID for node "primary" [18:31:43.376](0.223s) ok 2 - restart fails with password-protected key file with wrong password ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart pg_ctl: PID file "/tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata/postmaster.pid" does not exist Is server running? trying to start server anyway waiting for server to start.... done server started # Postmaster PID for node "primary" is 35534 [18:31:43.502](0.126s) ok 3 - restart succeeds with password-protected key file ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... stopped waiting pg_ctl: could not start server Examine the log output. # pg_ctl restart failed; see logfile for details: /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log # No postmaster PID for node "primary" [18:31:43.722](0.220s) ok 4 - restart fails with incorrect SSL protocol bounds ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart pg_ctl: PID file "/tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata/postmaster.pid" does not exist Is server running? trying to start server anyway waiting for server to start.... done server started # Postmaster PID for node "primary" is 35596 [18:31:43.933](0.211s) ok 5 - restart succeeds with correct SSL protocol bounds [18:31:43.933](0.000s) # running client tests ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 35630 [18:31:44.189](0.256s) ok 6 - server doesn't accept non-SSL connections [18:31:44.190](0.000s) ok 7 - server doesn't accept non-SSL connections: matches [18:31:44.247](0.057s) ok 8 - connect without server root cert sslmode=require [18:31:44.247](0.000s) ok 9 - connect without server root cert sslmode=require: no stderr [18:31:44.290](0.043s) ok 10 - connect without server root cert sslmode=verify-ca [18:31:44.290](0.000s) ok 11 - connect without server root cert sslmode=verify-ca: matches [18:31:44.357](0.066s) ok 12 - connect without server root cert sslmode=verify-full [18:31:44.357](0.000s) ok 13 - connect without server root cert sslmode=verify-full: matches [18:31:44.419](0.062s) ok 14 - connect with wrong server root cert sslmode=require [18:31:44.419](0.000s) ok 15 - connect with wrong server root cert sslmode=require: matches [18:31:44.519](0.100s) ok 16 - connect with wrong server root cert sslmode=verify-ca [18:31:44.519](0.000s) ok 17 - connect with wrong server root cert sslmode=verify-ca: matches [18:31:44.574](0.055s) ok 18 - connect with wrong server root cert sslmode=verify-full [18:31:44.574](0.000s) ok 19 - connect with wrong server root cert sslmode=verify-full: matches [18:31:44.632](0.058s) ok 20 - connect with server CA cert, without root CA [18:31:44.632](0.000s) ok 21 - connect with server CA cert, without root CA: matches [18:31:44.701](0.068s) ok 22 - connect with correct server CA cert file sslmode=require [18:31:44.701](0.000s) ok 23 - connect with correct server CA cert file sslmode=require: no stderr [18:31:44.784](0.083s) ok 24 - connect with correct server CA cert file sslmode=verify-ca [18:31:44.784](0.000s) ok 25 - connect with correct server CA cert file sslmode=verify-ca: no stderr [18:31:44.851](0.067s) ok 26 - connect with correct server CA cert file sslmode=verify-full [18:31:44.851](0.000s) ok 27 - connect with correct server CA cert file sslmode=verify-full: no stderr [18:31:44.924](0.073s) ok 28 - cert root file that contains two certificates, order 1 [18:31:44.925](0.000s) ok 29 - cert root file that contains two certificates, order 1: no stderr [18:31:45.016](0.091s) ok 30 - cert root file that contains two certificates, order 2 [18:31:45.016](0.000s) ok 31 - cert root file that contains two certificates, order 2: no stderr [18:31:45.094](0.078s) ok 32 - connect with sslcertmode=disable [18:31:45.095](0.000s) ok 33 - connect with sslcertmode=disable: no stderr [18:31:45.163](0.068s) ok 34 - connect with sslcertmode=allow [18:31:45.163](0.000s) ok 35 - connect with sslcertmode=allow: no stderr [18:31:45.235](0.072s) ok 36 - connect with sslcertmode=require fails without a client certificate [18:31:45.235](0.000s) ok 37 - connect with sslcertmode=require fails without a client certificate: matches [18:31:45.309](0.074s) ok 38 - sslcrl option with invalid file name [18:31:45.309](0.000s) ok 39 - sslcrl option with invalid file name: no stderr [18:31:45.355](0.045s) ok 40 - CRL belonging to a different CA [18:31:45.355](0.000s) ok 41 - CRL belonging to a different CA: matches [18:31:45.423](0.068s) ok 42 - directory CRL belonging to a different CA [18:31:45.423](0.000s) ok 43 - directory CRL belonging to a different CA: matches [18:31:45.501](0.078s) ok 44 - CRL with a non-revoked cert [18:31:45.501](0.000s) ok 45 - CRL with a non-revoked cert: no stderr [18:31:45.558](0.057s) ok 46 - directory CRL with a non-revoked cert [18:31:45.558](0.000s) ok 47 - directory CRL with a non-revoked cert: no stderr [18:31:45.630](0.071s) ok 48 - mismatch between host name and server certificate sslmode=require [18:31:45.633](0.004s) ok 49 - mismatch between host name and server certificate sslmode=require: no stderr [18:31:45.703](0.069s) ok 50 - mismatch between host name and server certificate sslmode=verify-ca [18:31:45.703](0.000s) ok 51 - mismatch between host name and server certificate sslmode=verify-ca: no stderr [18:31:45.795](0.092s) ok 52 - mismatch between host name and server certificate sslmode=verify-full [18:31:45.796](0.000s) ok 53 - mismatch between host name and server certificate sslmode=verify-full: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 35827 [18:31:46.209](0.414s) ok 54 - IP address in the Common Name [18:31:46.210](0.000s) ok 55 - IP address in the Common Name: no stderr [18:31:46.296](0.086s) ok 56 - mismatch between host name and server certificate IP address [18:31:46.296](0.000s) ok 57 - mismatch between host name and server certificate IP address: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 35878 [18:31:46.639](0.342s) ok 58 - IP address in a dNSName [18:31:46.639](0.000s) ok 59 - IP address in a dNSName: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 35924 [18:31:47.062](0.423s) ok 60 - host name matching with X.509 Subject Alternative Names 1 [18:31:47.062](0.000s) ok 61 - host name matching with X.509 Subject Alternative Names 1: no stderr [18:31:47.134](0.071s) ok 62 - host name matching with X.509 Subject Alternative Names 2 [18:31:47.134](0.000s) ok 63 - host name matching with X.509 Subject Alternative Names 2: no stderr [18:31:47.206](0.072s) ok 64 - host name matching with X.509 Subject Alternative Names wildcard [18:31:47.206](0.000s) ok 65 - host name matching with X.509 Subject Alternative Names wildcard: no stderr [18:31:47.273](0.067s) ok 66 - host name not matching with X.509 Subject Alternative Names [18:31:47.273](0.000s) ok 67 - host name not matching with X.509 Subject Alternative Names: matches [18:31:47.336](0.063s) ok 68 - host name not matching with X.509 Subject Alternative Names wildcard [18:31:47.336](0.000s) ok 69 - host name not matching with X.509 Subject Alternative Names wildcard: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 35974 [18:31:47.664](0.328s) ok 70 - host name matching with a single X.509 Subject Alternative Name [18:31:47.664](0.000s) ok 71 - host name matching with a single X.509 Subject Alternative Name: no stderr [18:31:47.699](0.035s) ok 72 - host name not matching with a single X.509 Subject Alternative Name [18:31:47.700](0.000s) ok 73 - host name not matching with a single X.509 Subject Alternative Name: matches [18:31:47.728](0.029s) ok 74 - host name not matching with a single X.509 Subject Alternative Name wildcard [18:31:47.729](0.000s) ok 75 - host name not matching with a single X.509 Subject Alternative Name wildcard: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36017 [18:31:48.097](0.368s) ok 76 - host matching an IPv4 address (Subject Alternative Name 1) [18:31:48.097](0.000s) ok 77 - host matching an IPv4 address (Subject Alternative Name 1): no stderr [18:31:48.166](0.068s) ok 78 - host matching an IPv4 address in alternate form (Subject Alternative Name 1) [18:31:48.166](0.000s) ok 79 - host matching an IPv4 address in alternate form (Subject Alternative Name 1): no stderr [18:31:48.208](0.042s) ok 80 - host not matching an IPv4 address (Subject Alternative Name 1) [18:31:48.208](0.000s) ok 81 - host not matching an IPv4 address (Subject Alternative Name 1): matches [18:31:48.294](0.086s) ok 82 - host matching an IPv6 address (Subject Alternative Name 2) [18:31:48.294](0.000s) ok 83 - host matching an IPv6 address (Subject Alternative Name 2): no stderr [18:31:48.353](0.059s) ok 84 - host matching an IPv6 address in alternate form (Subject Alternative Name 2) [18:31:48.354](0.000s) ok 85 - host matching an IPv6 address in alternate form (Subject Alternative Name 2): no stderr [18:31:48.434](0.080s) ok 86 - host matching an IPv6 address in mixed form (Subject Alternative Name 2) [18:31:48.434](0.000s) ok 87 - host matching an IPv6 address in mixed form (Subject Alternative Name 2): no stderr [18:31:48.501](0.066s) ok 88 - host not matching an IPv6 address (Subject Alternative Name 2) [18:31:48.501](0.000s) ok 89 - host not matching an IPv6 address (Subject Alternative Name 2): matches [18:31:48.548](0.047s) ok 90 - IPv6 host with CIDR mask does not match [18:31:48.549](0.000s) ok 91 - IPv6 host with CIDR mask does not match: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36103 [18:31:48.863](0.314s) ok 92 - certificate with both a CN and SANs 1 [18:31:48.863](0.000s) ok 93 - certificate with both a CN and SANs 1: no stderr [18:31:48.950](0.087s) ok 94 - certificate with both a CN and SANs 2 [18:31:48.950](0.000s) ok 95 - certificate with both a CN and SANs 2: no stderr [18:31:49.015](0.065s) ok 96 - certificate with both a CN and SANs ignores CN [18:31:49.015](0.000s) ok 97 - certificate with both a CN and SANs ignores CN: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36173 [18:31:49.470](0.455s) ok 98 - certificate with both a CN and IP SANs matches CN [18:31:49.471](0.000s) ok 99 - certificate with both a CN and IP SANs matches CN: no stderr [18:31:49.558](0.087s) ok 100 - certificate with both a CN and IP SANs matches SAN 1 [18:31:49.558](0.000s) ok 101 - certificate with both a CN and IP SANs matches SAN 1: no stderr [18:31:49.666](0.108s) ok 102 - certificate with both a CN and IP SANs matches SAN 2 [18:31:49.667](0.000s) ok 103 - certificate with both a CN and IP SANs matches SAN 2: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36243 [18:31:50.052](0.386s) ok 104 - certificate with both an IP CN and IP SANs 1 [18:31:50.053](0.000s) ok 105 - certificate with both an IP CN and IP SANs 1: no stderr [18:31:50.110](0.057s) ok 106 - certificate with both an IP CN and IP SANs 2 [18:31:50.110](0.000s) ok 107 - certificate with both an IP CN and IP SANs 2: no stderr [18:31:50.150](0.040s) ok 108 - certificate with both an IP CN and IP SANs ignores CN [18:31:50.150](0.000s) ok 109 - certificate with both an IP CN and IP SANs ignores CN: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36312 [18:31:50.467](0.317s) ok 110 - certificate with both an IP CN and DNS SANs matches CN [18:31:50.468](0.000s) ok 111 - certificate with both an IP CN and DNS SANs matches CN: no stderr [18:31:50.517](0.049s) ok 112 - certificate with both an IP CN and DNS SANs matches SAN 1 [18:31:50.517](0.000s) ok 113 - certificate with both an IP CN and DNS SANs matches SAN 1: no stderr [18:31:50.555](0.038s) ok 114 - certificate with both an IP CN and DNS SANs matches SAN 2 [18:31:50.555](0.000s) ok 115 - certificate with both an IP CN and DNS SANs matches SAN 2: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36359 [18:31:50.883](0.328s) ok 116 - server certificate without CN or SANs sslmode=verify-ca [18:31:50.883](0.000s) ok 117 - server certificate without CN or SANs sslmode=verify-ca: no stderr [18:31:50.929](0.045s) ok 118 - server certificate without CN or SANs sslmode=verify-full [18:31:50.929](0.000s) ok 119 - server certificate without CN or SANs sslmode=verify-full: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36410 [18:31:51.198](0.268s) ok 120 - sslrootcert=system does not connect with private CA [18:31:51.198](0.000s) ok 121 - sslrootcert=system does not connect with private CA: matches [18:31:51.224](0.026s) ok 122 - sslrootcert=system only accepts sslmode=verify-full [18:31:51.224](0.000s) ok 123 - sslrootcert=system only accepts sslmode=verify-full: matches [18:31:51.263](0.039s) ok 124 - sslrootcert=system connects with overridden SSL_CERT_FILE [18:31:51.263](0.000s) ok 125 - sslrootcert=system connects with overridden SSL_CERT_FILE: no stderr [18:31:51.296](0.032s) ok 126 - sslrootcert=system defaults to sslmode=verify-full [18:31:51.296](0.000s) ok 127 - sslrootcert=system defaults to sslmode=verify-full: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36438 [18:31:51.579](0.284s) ok 128 - connects without client-side CRL [18:31:51.580](0.000s) ok 129 - connects without client-side CRL: no stderr [18:31:51.628](0.049s) ok 130 - does not connect with client-side CRL file [18:31:51.628](0.000s) ok 131 - does not connect with client-side CRL file: matches [18:31:51.664](0.035s) ok 132 - does not connect with client-side CRL directory [18:31:51.664](0.000s) ok 133 - does not connect with client-side CRL directory: matches # Running: psql -X -A -F , -P null=_null_ -d sslkey=invalid sslcert=invalid sslrootcert=invalid sslcrl=invalid sslcrldir=invalid user=ssltestuser dbname=trustdb hostaddr=127.0.0.1 host=common-name.pg-ssltest.test sslrootcert=invalid -c SELECT * FROM pg_stat_ssl WHERE pid = pg_backend_pid() [18:31:51.715](0.051s) ok 134 - pg_stat_ssl view without client certificate: exit code 0 [18:31:51.716](0.000s) ok 135 - pg_stat_ssl view without client certificate: no stderr [18:31:51.716](0.000s) ok 136 - pg_stat_ssl view without client certificate: matches [18:31:51.770](0.054s) ok 137 - connection success with correct range of TLS protocol versions [18:31:51.770](0.000s) ok 138 - connection success with correct range of TLS protocol versions: no stderr [18:31:51.787](0.017s) ok 139 - connection failure with incorrect range of TLS protocol versions [18:31:51.787](0.000s) ok 140 - connection failure with incorrect range of TLS protocol versions: matches [18:31:51.802](0.015s) ok 141 - connection failure with an incorrect SSL protocol minimum bound [18:31:51.803](0.000s) ok 142 - connection failure with an incorrect SSL protocol minimum bound: matches [18:31:51.828](0.026s) ok 143 - connection failure with an incorrect SSL protocol maximum bound [18:31:51.829](0.000s) ok 144 - connection failure with an incorrect SSL protocol maximum bound: matches [18:31:51.829](0.000s) # running server tests [18:31:51.877](0.049s) ok 145 - certificate authorization fails without client cert [18:31:51.878](0.000s) ok 146 - certificate authorization fails without client cert: matches [18:31:51.919](0.042s) ok 147 - certificate authorization succeeds with correct client cert in PEM format [18:31:51.920](0.000s) ok 148 - certificate authorization succeeds with correct client cert in PEM format: no stderr [18:31:51.953](0.033s) ok 149 - certificate authorization succeeds with correct client cert in DER format [18:31:51.953](0.000s) ok 150 - certificate authorization succeeds with correct client cert in DER format: no stderr [18:31:52.002](0.049s) ok 151 - certificate authorization succeeds with correct client cert in encrypted PEM format [18:31:52.002](0.000s) ok 152 - certificate authorization succeeds with correct client cert in encrypted PEM format: no stderr [18:31:52.048](0.045s) ok 153 - certificate authorization succeeds with correct client cert in encrypted DER format [18:31:52.048](0.000s) ok 154 - certificate authorization succeeds with correct client cert in encrypted DER format: no stderr [18:31:52.084](0.036s) ok 155 - certificate authorization succeeds with correct client cert and sslcertmode=require [18:31:52.084](0.000s) ok 156 - certificate authorization succeeds with correct client cert and sslcertmode=require: no stderr [18:31:52.110](0.026s) ok 157 - certificate authorization succeeds with correct client cert and sslcertmode=allow [18:31:52.110](0.000s) ok 158 - certificate authorization succeeds with correct client cert and sslcertmode=allow: no stderr [18:31:52.151](0.041s) ok 159 - certificate authorization fails with correct client cert and sslcertmode=disable [18:31:52.151](0.000s) ok 160 - certificate authorization fails with correct client cert and sslcertmode=disable: matches [18:31:52.196](0.045s) ok 161 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format [18:31:52.196](0.000s) ok 162 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format: matches [18:31:52.258](0.062s) ok 163 - certificate authorization succeeds with DN mapping [18:31:52.258](0.000s) ok 164 - certificate authorization succeeds with DN mapping: no stderr [18:31:52.258](0.000s) ok 165 - certificate authorization succeeds with DN mapping: log matches [18:31:52.304](0.045s) ok 166 - certificate authorization succeeds with DN regex mapping [18:31:52.304](0.000s) ok 167 - certificate authorization succeeds with DN regex mapping: no stderr [18:31:52.360](0.055s) ok 168 - certificate authorization succeeds with CN mapping [18:31:52.360](0.000s) ok 169 - certificate authorization succeeds with CN mapping: no stderr [18:31:52.360](0.000s) ok 170 - certificate authorization succeeds with CN mapping: log matches [18:31:52.360](0.000s) not ok 171 # TODO & SKIP Need Pty support [18:31:52.361](0.000s) not ok 172 # TODO & SKIP Need Pty support [18:31:52.361](0.000s) not ok 173 # TODO & SKIP Need Pty support [18:31:52.361](0.000s) not ok 174 # TODO & SKIP Need Pty support # Running: psql -X -A -F , -P null=_null_ -d sslkey=invalid sslcert=invalid sslrootcert=invalid sslcrl=invalid sslcrldir=invalid sslrootcert=ssl/root+server_ca.crt sslmode=require dbname=certdb hostaddr=127.0.0.1 host=localhost user=ssltestuser sslcert=ssl/client.crt sslkey=/tmp/cirrus-ci-build/src/test/ssl/tmp_check/tmp_test_dryX/client.key -c SELECT * FROM pg_stat_ssl WHERE pid = pg_backend_pid() [18:31:52.402](0.041s) ok 175 - pg_stat_ssl with client certificate: exit code 0 [18:31:52.402](0.000s) ok 176 - pg_stat_ssl with client certificate: no stderr [18:31:52.402](0.000s) ok 177 - pg_stat_ssl with client certificate: matches [18:31:52.430](0.027s) ok 178 - certificate authorization fails because of file permissions [18:31:52.430](0.000s) ok 179 - certificate authorization fails because of file permissions: matches [18:31:52.463](0.033s) ok 180 - certificate authorization fails with client cert belonging to another user [18:31:52.464](0.000s) ok 181 - certificate authorization fails with client cert belonging to another user: matches [18:31:52.520](0.056s) ok 182 - certificate authorization fails with revoked client cert [18:31:52.520](0.000s) ok 183 - certificate authorization fails with revoked client cert: matches [18:31:52.520](0.000s) ok 184 - certificate authorization fails with revoked client cert: log does not match [18:31:52.576](0.055s) ok 185 - auth_option clientcert=verify-full succeeds with matching username and Common Name [18:31:52.576](0.000s) ok 186 - auth_option clientcert=verify-full succeeds with matching username and Common Name: no stderr [18:31:52.576](0.000s) ok 187 - auth_option clientcert=verify-full succeeds with matching username and Common Name: log matches [18:31:52.625](0.049s) ok 188 - auth_option clientcert=verify-full fails with mismatching username and Common Name [18:31:52.625](0.000s) ok 189 - auth_option clientcert=verify-full fails with mismatching username and Common Name: matches [18:31:52.626](0.000s) ok 190 - auth_option clientcert=verify-full fails with mismatching username and Common Name: log does not match [18:31:52.691](0.066s) ok 191 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name [18:31:52.691](0.000s) ok 192 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name: no stderr [18:31:52.692](0.000s) ok 193 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name: log matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36649 [18:31:52.964](0.272s) ok 194 - intermediate client certificate is provided by client [18:31:52.964](0.000s) ok 195 - intermediate client certificate is provided by client: no stderr [18:31:53.005](0.041s) ok 196 - intermediate client certificate is missing [18:31:53.005](0.000s) ok 197 - intermediate client certificate is missing: matches [18:31:53.039](0.034s) ok 198 - logged client certificate Subjects are truncated if they're too long [18:31:53.039](0.000s) ok 199 - logged client certificate Subjects are truncated if they're too long: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36716 [18:31:53.300](0.260s) ok 200 - intermediate client certificate is untrusted [18:31:53.300](0.000s) ok 201 - intermediate client certificate is untrusted: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36758 [18:31:53.560](0.260s) ok 202 - certificate authorization fails with revoked client cert with server-side CRL directory [18:31:53.561](0.000s) ok 203 - certificate authorization fails with revoked client cert with server-side CRL directory: matches [18:31:53.600](0.039s) ok 204 - certificate authorization fails with revoked UTF-8 client cert with server-side CRL directory [18:31:53.600](0.000s) ok 205 - certificate authorization fails with revoked UTF-8 client cert with server-side CRL directory: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36810 [18:31:53.855](0.254s) not ok 206 - connect with valid stapled ocsp response when sslocspstapling=1 [18:31:53.855](0.000s) [18:31:53.855](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1' # at t/001_ssltests.pl line 923. [18:31:53.855](0.000s) # got: '2' # expected: '0' [18:31:53.855](0.000s) not ok 207 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [18:31:53.855](0.000s) [18:31:53.855](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1: no stderr' # at t/001_ssltests.pl line 923. [18:31:53.855](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 51732 failed: SSL SYSCALL error: EOF detected' # expected: '' [18:31:53.906](0.050s) ok 208 - connect without requesting ocsp response when sslocspstapling=0 [18:31:53.906](0.000s) ok 209 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36873 [18:31:54.203](0.297s) ok 210 - failed with a revoked ocsp response when sslocspstapling=1 [18:31:54.272](0.069s) ok 211 - connect without requesting ocsp response when sslocspstapling=0 [18:31:54.272](0.000s) ok 212 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 36929 [18:31:54.521](0.249s) ok 213 - failed with a revoked ocsp response when sslocspstapling=1 [18:31:54.570](0.049s) ok 214 - connect without requesting ocsp response when sslocspstapling=0 [18:31:54.571](0.000s) ok 215 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 37004 [18:31:55.005](0.435s) ok 216 - failed with an expired ocsp response when sslocspstapling=1 [18:31:55.153](0.148s) ok 217 - connect without requesting ocsp response when sslocspstapling=0 [18:31:55.154](0.000s) ok 218 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 37094 [18:31:55.530](0.376s) not ok 219 - connect with valid stapled ocsp response when sslocspstapling=1 [18:31:55.530](0.000s) [18:31:55.530](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1' # at t/001_ssltests.pl line 1001. [18:31:55.530](0.000s) # got: '2' # expected: '0' [18:31:55.530](0.000s) not ok 220 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [18:31:55.530](0.000s) [18:31:55.530](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1: no stderr' # at t/001_ssltests.pl line 1001. [18:31:55.530](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 51732 failed: server closed the connection unexpectedly # This probably means the server terminated abnormally # before or while processing the request. # SSL SYSCALL error: Connection reset by peer' # expected: '' [18:31:55.650](0.120s) ok 221 - connect without requesting ocsp response when sslocspstapling=0 [18:31:55.650](0.000s) ok 222 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 37138 [18:31:56.057](0.406s) ok 223 - failed with a revoked ocsp response when sslocspstapling=1 [18:31:56.162](0.105s) ok 224 - connect without requesting ocsp response when sslocspstapling=0 [18:31:56.162](0.000s) ok 225 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 37214 [18:31:56.535](0.373s) ok 226 - failed with a revoked ocsp response when sslocspstapling=1 [18:31:56.607](0.072s) ok 227 - connect without requesting ocsp response when sslocspstapling=0 [18:31:56.608](0.000s) ok 228 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 37287 [18:31:56.865](0.258s) ok 229 - failed with an expired ocsp response when sslocspstapling=1 [18:31:56.934](0.069s) ok 230 - connect without requesting ocsp response when sslocspstapling=0 [18:31:56.935](0.000s) ok 231 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "primary" is 37352 [18:31:57.201](0.267s) ok 232 - failed with an expired ocsp response when sslocspstapling=1 [18:31:57.249](0.048s) ok 233 - connect without requesting ocsp response when sslocspstapling=0 [18:31:57.249](0.000s) ok 234 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/ssl/tmp_check/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... stopped waiting pg_ctl: could not start server Examine the log output. # pg_ctl restart failed; see logfile for details: /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log # No postmaster PID for node "primary" [18:31:57.460](0.211s) Bail out! pg_ctl restart failed # No postmaster PID for node "primary"