[10:51:02.292](0.075s) # setting up data directory # Checking port 55601 # Found port 55601 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=55601 host=/tmp/vvOK1CjKkv Log file: /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log [10:51:02.303](0.011s) # 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 29850 [10:51:02.811](0.507s) 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 30186 [10:51:04.447](1.637s) # 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" [10:51:04.666](0.219s) 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 30253 [10:51:04.783](0.117s) 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" [10:51:05.110](0.327s) 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 30314 [10:51:05.320](0.209s) ok 5 - restart succeeds with correct SSL protocol bounds [10:51:05.320](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 30343 [10:51:05.582](0.262s) ok 6 - server doesn't accept non-SSL connections [10:51:05.583](0.000s) ok 7 - server doesn't accept non-SSL connections: matches [10:51:05.675](0.092s) ok 8 - connect without server root cert sslmode=require [10:51:05.675](0.000s) ok 9 - connect without server root cert sslmode=require: no stderr [10:51:05.740](0.065s) ok 10 - connect without server root cert sslmode=verify-ca [10:51:05.740](0.000s) ok 11 - connect without server root cert sslmode=verify-ca: matches [10:51:05.804](0.064s) ok 12 - connect without server root cert sslmode=verify-full [10:51:05.805](0.000s) ok 13 - connect without server root cert sslmode=verify-full: matches [10:51:05.858](0.053s) ok 14 - connect with wrong server root cert sslmode=require [10:51:05.858](0.000s) ok 15 - connect with wrong server root cert sslmode=require: matches [10:51:05.922](0.064s) ok 16 - connect with wrong server root cert sslmode=verify-ca [10:51:05.922](0.000s) ok 17 - connect with wrong server root cert sslmode=verify-ca: matches [10:51:05.973](0.051s) ok 18 - connect with wrong server root cert sslmode=verify-full [10:51:05.974](0.000s) ok 19 - connect with wrong server root cert sslmode=verify-full: matches [10:51:06.050](0.076s) ok 20 - connect with server CA cert, without root CA [10:51:06.050](0.000s) ok 21 - connect with server CA cert, without root CA: matches [10:51:06.091](0.041s) ok 22 - connect with correct server CA cert file sslmode=require [10:51:06.091](0.000s) ok 23 - connect with correct server CA cert file sslmode=require: no stderr [10:51:06.160](0.069s) ok 24 - connect with correct server CA cert file sslmode=verify-ca [10:51:06.160](0.000s) ok 25 - connect with correct server CA cert file sslmode=verify-ca: no stderr [10:51:06.241](0.081s) ok 26 - connect with correct server CA cert file sslmode=verify-full [10:51:06.241](0.000s) ok 27 - connect with correct server CA cert file sslmode=verify-full: no stderr [10:51:06.296](0.055s) ok 28 - cert root file that contains two certificates, order 1 [10:51:06.297](0.000s) ok 29 - cert root file that contains two certificates, order 1: no stderr [10:51:06.361](0.065s) ok 30 - cert root file that contains two certificates, order 2 [10:51:06.362](0.000s) ok 31 - cert root file that contains two certificates, order 2: no stderr [10:51:06.436](0.075s) ok 32 - connect with sslcertmode=disable [10:51:06.437](0.000s) ok 33 - connect with sslcertmode=disable: no stderr [10:51:06.515](0.078s) ok 34 - connect with sslcertmode=allow [10:51:06.515](0.000s) ok 35 - connect with sslcertmode=allow: no stderr [10:51:06.571](0.056s) ok 36 - connect with sslcertmode=require fails without a client certificate [10:51:06.572](0.000s) ok 37 - connect with sslcertmode=require fails without a client certificate: matches [10:51:06.654](0.082s) ok 38 - sslcrl option with invalid file name [10:51:06.654](0.000s) ok 39 - sslcrl option with invalid file name: no stderr [10:51:06.698](0.044s) ok 40 - CRL belonging to a different CA [10:51:06.698](0.000s) ok 41 - CRL belonging to a different CA: matches [10:51:06.769](0.070s) ok 42 - directory CRL belonging to a different CA [10:51:06.769](0.000s) ok 43 - directory CRL belonging to a different CA: matches [10:51:06.830](0.061s) ok 44 - CRL with a non-revoked cert [10:51:06.830](0.000s) ok 45 - CRL with a non-revoked cert: no stderr [10:51:06.893](0.063s) ok 46 - directory CRL with a non-revoked cert [10:51:06.893](0.000s) ok 47 - directory CRL with a non-revoked cert: no stderr [10:51:06.966](0.072s) ok 48 - mismatch between host name and server certificate sslmode=require [10:51:06.966](0.000s) ok 49 - mismatch between host name and server certificate sslmode=require: no stderr [10:51:07.032](0.066s) ok 50 - mismatch between host name and server certificate sslmode=verify-ca [10:51:07.032](0.000s) ok 51 - mismatch between host name and server certificate sslmode=verify-ca: no stderr [10:51:07.098](0.066s) ok 52 - mismatch between host name and server certificate sslmode=verify-full [10:51:07.098](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 30548 [10:51:07.531](0.433s) ok 54 - IP address in the Common Name [10:51:07.531](0.000s) ok 55 - IP address in the Common Name: no stderr [10:51:07.592](0.060s) ok 56 - mismatch between host name and server certificate IP address [10:51:07.592](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 30586 [10:51:08.001](0.409s) ok 58 - IP address in a dNSName [10:51:08.001](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 30622 [10:51:08.432](0.431s) ok 60 - host name matching with X.509 Subject Alternative Names 1 [10:51:08.432](0.000s) ok 61 - host name matching with X.509 Subject Alternative Names 1: no stderr [10:51:08.503](0.071s) ok 62 - host name matching with X.509 Subject Alternative Names 2 [10:51:08.504](0.000s) ok 63 - host name matching with X.509 Subject Alternative Names 2: no stderr [10:51:08.572](0.069s) ok 64 - host name matching with X.509 Subject Alternative Names wildcard [10:51:08.573](0.000s) ok 65 - host name matching with X.509 Subject Alternative Names wildcard: no stderr [10:51:08.633](0.060s) ok 66 - host name not matching with X.509 Subject Alternative Names [10:51:08.633](0.000s) ok 67 - host name not matching with X.509 Subject Alternative Names: matches [10:51:08.673](0.039s) ok 68 - host name not matching with X.509 Subject Alternative Names wildcard [10:51:08.673](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 30692 [10:51:09.065](0.393s) ok 70 - host name matching with a single X.509 Subject Alternative Name [10:51:09.066](0.000s) ok 71 - host name matching with a single X.509 Subject Alternative Name: no stderr [10:51:09.121](0.056s) ok 72 - host name not matching with a single X.509 Subject Alternative Name [10:51:09.122](0.000s) ok 73 - host name not matching with a single X.509 Subject Alternative Name: matches [10:51:09.169](0.047s) ok 74 - host name not matching with a single X.509 Subject Alternative Name wildcard [10:51:09.169](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 30731 [10:51:09.552](0.383s) ok 76 - host matching an IPv4 address (Subject Alternative Name 1) [10:51:09.552](0.000s) ok 77 - host matching an IPv4 address (Subject Alternative Name 1): no stderr [10:51:09.608](0.057s) ok 78 - host matching an IPv4 address in alternate form (Subject Alternative Name 1) [10:51:09.609](0.000s) ok 79 - host matching an IPv4 address in alternate form (Subject Alternative Name 1): no stderr [10:51:09.671](0.062s) ok 80 - host not matching an IPv4 address (Subject Alternative Name 1) [10:51:09.671](0.000s) ok 81 - host not matching an IPv4 address (Subject Alternative Name 1): matches [10:51:09.750](0.078s) ok 82 - host matching an IPv6 address (Subject Alternative Name 2) [10:51:09.750](0.000s) ok 83 - host matching an IPv6 address (Subject Alternative Name 2): no stderr [10:51:09.827](0.078s) ok 84 - host matching an IPv6 address in alternate form (Subject Alternative Name 2) [10:51:09.828](0.000s) ok 85 - host matching an IPv6 address in alternate form (Subject Alternative Name 2): no stderr [10:51:09.884](0.056s) ok 86 - host matching an IPv6 address in mixed form (Subject Alternative Name 2) [10:51:09.884](0.000s) ok 87 - host matching an IPv6 address in mixed form (Subject Alternative Name 2): no stderr [10:51:09.935](0.051s) ok 88 - host not matching an IPv6 address (Subject Alternative Name 2) [10:51:09.935](0.000s) ok 89 - host not matching an IPv6 address (Subject Alternative Name 2): matches [10:51:09.997](0.062s) ok 90 - IPv6 host with CIDR mask does not match [10:51:09.997](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 30809 [10:51:10.377](0.380s) ok 92 - certificate with both a CN and SANs 1 [10:51:10.377](0.000s) ok 93 - certificate with both a CN and SANs 1: no stderr [10:51:10.441](0.064s) ok 94 - certificate with both a CN and SANs 2 [10:51:10.441](0.000s) ok 95 - certificate with both a CN and SANs 2: no stderr [10:51:10.507](0.066s) ok 96 - certificate with both a CN and SANs ignores CN [10:51:10.507](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 30848 [10:51:10.940](0.433s) ok 98 - certificate with both a CN and IP SANs matches CN [10:51:10.941](0.000s) ok 99 - certificate with both a CN and IP SANs matches CN: no stderr [10:51:11.021](0.081s) ok 100 - certificate with both a CN and IP SANs matches SAN 1 [10:51:11.022](0.000s) ok 101 - certificate with both a CN and IP SANs matches SAN 1: no stderr [10:51:11.077](0.056s) ok 102 - certificate with both a CN and IP SANs matches SAN 2 [10:51:11.077](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 30902 [10:51:11.487](0.409s) ok 104 - certificate with both an IP CN and IP SANs 1 [10:51:11.487](0.000s) ok 105 - certificate with both an IP CN and IP SANs 1: no stderr [10:51:11.551](0.064s) ok 106 - certificate with both an IP CN and IP SANs 2 [10:51:11.551](0.000s) ok 107 - certificate with both an IP CN and IP SANs 2: no stderr [10:51:11.634](0.083s) ok 108 - certificate with both an IP CN and IP SANs ignores CN [10:51:11.635](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 30974 [10:51:12.063](0.429s) ok 110 - certificate with both an IP CN and DNS SANs matches CN [10:51:12.063](0.000s) ok 111 - certificate with both an IP CN and DNS SANs matches CN: no stderr [10:51:12.121](0.058s) ok 112 - certificate with both an IP CN and DNS SANs matches SAN 1 [10:51:12.122](0.000s) ok 113 - certificate with both an IP CN and DNS SANs matches SAN 1: no stderr [10:51:12.186](0.065s) ok 114 - certificate with both an IP CN and DNS SANs matches SAN 2 [10:51:12.187](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 31056 [10:51:12.590](0.404s) ok 116 - server certificate without CN or SANs sslmode=verify-ca [10:51:12.591](0.000s) ok 117 - server certificate without CN or SANs sslmode=verify-ca: no stderr [10:51:12.666](0.075s) ok 118 - server certificate without CN or SANs sslmode=verify-full [10:51:12.666](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 31134 [10:51:13.043](0.377s) ok 120 - sslrootcert=system does not connect with private CA [10:51:13.043](0.000s) ok 121 - sslrootcert=system does not connect with private CA: matches [10:51:13.064](0.021s) ok 122 - sslrootcert=system only accepts sslmode=verify-full [10:51:13.064](0.000s) ok 123 - sslrootcert=system only accepts sslmode=verify-full: matches [10:51:13.156](0.092s) ok 124 - sslrootcert=system connects with overridden SSL_CERT_FILE [10:51:13.157](0.000s) ok 125 - sslrootcert=system connects with overridden SSL_CERT_FILE: no stderr [10:51:13.224](0.067s) ok 126 - sslrootcert=system defaults to sslmode=verify-full [10:51:13.224](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 31220 [10:51:13.630](0.406s) ok 128 - connects without client-side CRL [10:51:13.630](0.000s) ok 129 - connects without client-side CRL: no stderr [10:51:13.689](0.058s) ok 130 - does not connect with client-side CRL file [10:51:13.689](0.000s) ok 131 - does not connect with client-side CRL file: matches [10:51:13.755](0.066s) ok 132 - does not connect with client-side CRL directory [10:51:13.755](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() [10:51:13.814](0.059s) ok 134 - pg_stat_ssl view without client certificate: exit code 0 [10:51:13.814](0.000s) ok 135 - pg_stat_ssl view without client certificate: no stderr [10:51:13.815](0.000s) ok 136 - pg_stat_ssl view without client certificate: matches [10:51:13.899](0.084s) ok 137 - connection success with correct range of TLS protocol versions [10:51:13.899](0.000s) ok 138 - connection success with correct range of TLS protocol versions: no stderr [10:51:13.937](0.039s) ok 139 - connection failure with incorrect range of TLS protocol versions [10:51:13.938](0.000s) ok 140 - connection failure with incorrect range of TLS protocol versions: matches [10:51:13.963](0.025s) ok 141 - connection failure with an incorrect SSL protocol minimum bound [10:51:13.963](0.000s) ok 142 - connection failure with an incorrect SSL protocol minimum bound: matches [10:51:13.987](0.024s) ok 143 - connection failure with an incorrect SSL protocol maximum bound [10:51:13.987](0.000s) ok 144 - connection failure with an incorrect SSL protocol maximum bound: matches [10:51:13.988](0.000s) # running server tests [10:51:14.056](0.068s) ok 145 - certificate authorization fails without client cert [10:51:14.056](0.000s) ok 146 - certificate authorization fails without client cert: matches [10:51:14.157](0.101s) ok 147 - certificate authorization succeeds with correct client cert in PEM format [10:51:14.157](0.000s) ok 148 - certificate authorization succeeds with correct client cert in PEM format: no stderr [10:51:14.242](0.085s) ok 149 - certificate authorization succeeds with correct client cert in DER format [10:51:14.242](0.000s) ok 150 - certificate authorization succeeds with correct client cert in DER format: no stderr [10:51:14.348](0.106s) ok 151 - certificate authorization succeeds with correct client cert in encrypted PEM format [10:51:14.349](0.000s) ok 152 - certificate authorization succeeds with correct client cert in encrypted PEM format: no stderr [10:51:14.452](0.103s) ok 153 - certificate authorization succeeds with correct client cert in encrypted DER format [10:51:14.452](0.000s) ok 154 - certificate authorization succeeds with correct client cert in encrypted DER format: no stderr [10:51:14.534](0.081s) ok 155 - certificate authorization succeeds with correct client cert and sslcertmode=require [10:51:14.534](0.000s) ok 156 - certificate authorization succeeds with correct client cert and sslcertmode=require: no stderr [10:51:14.629](0.095s) ok 157 - certificate authorization succeeds with correct client cert and sslcertmode=allow [10:51:14.630](0.000s) ok 158 - certificate authorization succeeds with correct client cert and sslcertmode=allow: no stderr [10:51:14.716](0.086s) ok 159 - certificate authorization fails with correct client cert and sslcertmode=disable [10:51:14.716](0.000s) ok 160 - certificate authorization fails with correct client cert and sslcertmode=disable: matches [10:51:14.757](0.041s) ok 161 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format [10:51:14.757](0.000s) ok 162 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format: matches [10:51:14.845](0.088s) ok 163 - certificate authorization succeeds with DN mapping [10:51:14.846](0.000s) ok 164 - certificate authorization succeeds with DN mapping: no stderr [10:51:14.846](0.000s) ok 165 - certificate authorization succeeds with DN mapping: log matches [10:51:14.940](0.094s) ok 166 - certificate authorization succeeds with DN regex mapping [10:51:14.941](0.000s) ok 167 - certificate authorization succeeds with DN regex mapping: no stderr [10:51:15.023](0.083s) ok 168 - certificate authorization succeeds with CN mapping [10:51:15.024](0.000s) ok 169 - certificate authorization succeeds with CN mapping: no stderr [10:51:15.024](0.000s) ok 170 - certificate authorization succeeds with CN mapping: log matches [10:51:15.024](0.000s) not ok 171 # TODO & SKIP Need Pty support [10:51:15.024](0.000s) not ok 172 # TODO & SKIP Need Pty support [10:51:15.025](0.000s) not ok 173 # TODO & SKIP Need Pty support [10:51:15.025](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_lrY3/client.key -c SELECT * FROM pg_stat_ssl WHERE pid = pg_backend_pid() [10:51:15.136](0.112s) ok 175 - pg_stat_ssl with client certificate: exit code 0 [10:51:15.137](0.000s) ok 176 - pg_stat_ssl with client certificate: no stderr [10:51:15.137](0.000s) ok 177 - pg_stat_ssl with client certificate: matches [10:51:15.198](0.061s) ok 178 - certificate authorization fails because of file permissions [10:51:15.199](0.000s) ok 179 - certificate authorization fails because of file permissions: matches [10:51:15.277](0.078s) ok 180 - certificate authorization fails with client cert belonging to another user [10:51:15.277](0.001s) ok 181 - certificate authorization fails with client cert belonging to another user: matches [10:51:15.400](0.123s) ok 182 - certificate authorization fails with revoked client cert [10:51:15.400](0.000s) ok 183 - certificate authorization fails with revoked client cert: matches [10:51:15.401](0.000s) ok 184 - certificate authorization fails with revoked client cert: log does not match [10:51:15.478](0.077s) ok 185 - auth_option clientcert=verify-full succeeds with matching username and Common Name [10:51:15.478](0.000s) ok 186 - auth_option clientcert=verify-full succeeds with matching username and Common Name: no stderr [10:51:15.479](0.000s) ok 187 - auth_option clientcert=verify-full succeeds with matching username and Common Name: log matches [10:51:15.582](0.104s) ok 188 - auth_option clientcert=verify-full fails with mismatching username and Common Name [10:51:15.583](0.000s) ok 189 - auth_option clientcert=verify-full fails with mismatching username and Common Name: matches [10:51:15.583](0.000s) ok 190 - auth_option clientcert=verify-full fails with mismatching username and Common Name: log does not match [10:51:15.666](0.083s) ok 191 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name [10:51:15.666](0.000s) ok 192 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name: no stderr [10:51:15.667](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 31702 [10:51:16.172](0.506s) ok 194 - intermediate client certificate is provided by client [10:51:16.172](0.000s) ok 195 - intermediate client certificate is provided by client: no stderr [10:51:16.262](0.089s) ok 196 - intermediate client certificate is missing [10:51:16.262](0.000s) ok 197 - intermediate client certificate is missing: matches [10:51:16.321](0.058s) ok 198 - logged client certificate Subjects are truncated if they're too long [10:51:16.321](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 31811 [10:51:16.642](0.321s) ok 200 - intermediate client certificate is untrusted [10:51:16.642](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 31867 [10:51:17.065](0.423s) ok 202 - certificate authorization fails with revoked client cert with server-side CRL directory [10:51:17.066](0.000s) ok 203 - certificate authorization fails with revoked client cert with server-side CRL directory: matches [10:51:17.146](0.080s) ok 204 - certificate authorization fails with revoked UTF-8 client cert with server-side CRL directory [10:51:17.146](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 31946 [10:51:17.586](0.440s) not ok 206 - connect with valid stapled ocsp response when sslocspstapling=1 [10:51:17.587](0.001s) [10:51:17.587](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1' # at t/001_ssltests.pl line 923. [10:51:17.587](0.000s) # got: '2' # expected: '0' [10:51:17.587](0.000s) not ok 207 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [10:51:17.588](0.000s) [10:51:17.588](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1: no stderr' # at t/001_ssltests.pl line 923. [10:51:17.588](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 55601 failed: SSL error: ocsp callback failure' # expected: '' [10:51:17.700](0.112s) ok 208 - connect without requesting ocsp response when sslocspstapling=0 [10:51:17.700](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 32063 [10:51:18.146](0.446s) ok 210 - failed with a revoked ocsp response when sslocspstapling=1 [10:51:18.243](0.097s) ok 211 - connect without requesting ocsp response when sslocspstapling=0 [10:51:18.243](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 32146 [10:51:18.631](0.388s) ok 213 - failed with a revoked ocsp response when sslocspstapling=1 [10:51:18.727](0.096s) ok 214 - connect without requesting ocsp response when sslocspstapling=0 [10:51:18.728](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 32240 [10:51:19.123](0.395s) ok 216 - failed with an expired ocsp response when sslocspstapling=1 [10:51:19.262](0.139s) ok 217 - connect without requesting ocsp response when sslocspstapling=0 [10:51:19.262](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 32309 [10:51:19.711](0.448s) not ok 219 - connect with valid stapled ocsp response when sslocspstapling=1 [10:51:19.711](0.000s) [10:51:19.711](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1' # at t/001_ssltests.pl line 1001. [10:51:19.711](0.000s) # got: '2' # expected: '0' [10:51:19.711](0.000s) not ok 220 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [10:51:19.711](0.000s) [10:51:19.711](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1: no stderr' # at t/001_ssltests.pl line 1001. [10:51:19.711](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 55601 failed: SSL error: ocsp callback failure' # expected: '' [10:51:19.788](0.076s) ok 221 - connect without requesting ocsp response when sslocspstapling=0 [10:51:19.788](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 32364 [10:51:20.201](0.413s) ok 223 - failed with a revoked ocsp response when sslocspstapling=1 [10:51:20.293](0.092s) ok 224 - connect without requesting ocsp response when sslocspstapling=0 [10:51:20.293](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 32461 [10:51:20.702](0.409s) ok 226 - failed with a revoked ocsp response when sslocspstapling=1 [10:51:20.808](0.106s) ok 227 - connect without requesting ocsp response when sslocspstapling=0 [10:51:20.808](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 32583 [10:51:21.215](0.407s) ok 229 - failed with an expired ocsp response when sslocspstapling=1 [10:51:21.313](0.097s) ok 230 - connect without requesting ocsp response when sslocspstapling=0 [10:51:21.313](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 32685 [10:51:21.594](0.281s) ok 232 - failed with an expired ocsp response when sslocspstapling=1 [10:51:21.699](0.105s) ok 233 - connect without requesting ocsp response when sslocspstapling=0 [10:51:21.699](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" [10:51:21.872](0.173s) Bail out! pg_ctl restart failed # No postmaster PID for node "primary"