[02:20:43.733](0.101s) # setting up data directory # Checking port 60739 # Found port 60739 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=60739 host=/tmp/2ajmHktTyL Log file: /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log [02:20:43.758](0.025s) # 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 34938 [02:20:44.051](0.293s) 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 35104 [02:20:45.250](1.199s) # 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" [02:20:45.478](0.228s) 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 35172 [02:20:45.590](0.112s) 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" [02:20:45.803](0.213s) 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 35216 [02:20:46.017](0.214s) ok 5 - restart succeeds with correct SSL protocol bounds [02:20:46.017](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 35262 [02:20:46.381](0.364s) ok 6 - server doesn't accept non-SSL connections [02:20:46.382](0.000s) ok 7 - server doesn't accept non-SSL connections: matches [02:20:46.471](0.089s) ok 8 - connect without server root cert sslmode=require [02:20:46.471](0.000s) ok 9 - connect without server root cert sslmode=require: no stderr [02:20:46.513](0.042s) ok 10 - connect without server root cert sslmode=verify-ca [02:20:46.514](0.000s) ok 11 - connect without server root cert sslmode=verify-ca: matches [02:20:46.571](0.058s) ok 12 - connect without server root cert sslmode=verify-full [02:20:46.571](0.000s) ok 13 - connect without server root cert sslmode=verify-full: matches [02:20:46.650](0.078s) ok 14 - connect with wrong server root cert sslmode=require [02:20:46.650](0.000s) ok 15 - connect with wrong server root cert sslmode=require: matches [02:20:46.690](0.040s) ok 16 - connect with wrong server root cert sslmode=verify-ca [02:20:46.691](0.000s) ok 17 - connect with wrong server root cert sslmode=verify-ca: matches [02:20:46.728](0.037s) ok 18 - connect with wrong server root cert sslmode=verify-full [02:20:46.728](0.000s) ok 19 - connect with wrong server root cert sslmode=verify-full: matches [02:20:46.791](0.063s) ok 20 - connect with server CA cert, without root CA [02:20:46.791](0.000s) ok 21 - connect with server CA cert, without root CA: matches [02:20:46.851](0.060s) ok 22 - connect with correct server CA cert file sslmode=require [02:20:46.851](0.000s) ok 23 - connect with correct server CA cert file sslmode=require: no stderr [02:20:46.903](0.052s) ok 24 - connect with correct server CA cert file sslmode=verify-ca [02:20:46.904](0.000s) ok 25 - connect with correct server CA cert file sslmode=verify-ca: no stderr [02:20:46.945](0.042s) ok 26 - connect with correct server CA cert file sslmode=verify-full [02:20:46.946](0.000s) ok 27 - connect with correct server CA cert file sslmode=verify-full: no stderr [02:20:46.995](0.049s) ok 28 - cert root file that contains two certificates, order 1 [02:20:46.995](0.000s) ok 29 - cert root file that contains two certificates, order 1: no stderr [02:20:47.061](0.066s) ok 30 - cert root file that contains two certificates, order 2 [02:20:47.061](0.000s) ok 31 - cert root file that contains two certificates, order 2: no stderr [02:20:47.105](0.044s) ok 32 - connect with sslcertmode=disable [02:20:47.106](0.000s) ok 33 - connect with sslcertmode=disable: no stderr [02:20:47.165](0.059s) ok 34 - connect with sslcertmode=allow [02:20:47.165](0.000s) ok 35 - connect with sslcertmode=allow: no stderr [02:20:47.211](0.046s) ok 36 - connect with sslcertmode=require fails without a client certificate [02:20:47.211](0.000s) ok 37 - connect with sslcertmode=require fails without a client certificate: matches [02:20:47.272](0.061s) ok 38 - sslcrl option with invalid file name [02:20:47.272](0.000s) ok 39 - sslcrl option with invalid file name: no stderr [02:20:47.315](0.043s) ok 40 - CRL belonging to a different CA [02:20:47.317](0.001s) ok 41 - CRL belonging to a different CA: matches [02:20:47.352](0.035s) ok 42 - directory CRL belonging to a different CA [02:20:47.352](0.000s) ok 43 - directory CRL belonging to a different CA: matches [02:20:47.409](0.057s) ok 44 - CRL with a non-revoked cert [02:20:47.409](0.000s) ok 45 - CRL with a non-revoked cert: no stderr [02:20:47.441](0.032s) ok 46 - directory CRL with a non-revoked cert [02:20:47.441](0.000s) ok 47 - directory CRL with a non-revoked cert: no stderr [02:20:47.489](0.048s) ok 48 - mismatch between host name and server certificate sslmode=require [02:20:47.489](0.000s) ok 49 - mismatch between host name and server certificate sslmode=require: no stderr [02:20:47.544](0.055s) ok 50 - mismatch between host name and server certificate sslmode=verify-ca [02:20:47.544](0.000s) ok 51 - mismatch between host name and server certificate sslmode=verify-ca: no stderr [02:20:47.582](0.038s) ok 52 - mismatch between host name and server certificate sslmode=verify-full [02:20:47.583](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 35528 [02:20:47.898](0.315s) ok 54 - IP address in the Common Name [02:20:47.898](0.000s) ok 55 - IP address in the Common Name: no stderr [02:20:47.937](0.039s) ok 56 - mismatch between host name and server certificate IP address [02:20:47.938](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 35605 [02:20:48.218](0.281s) ok 58 - IP address in a dNSName [02:20:48.219](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 35650 [02:20:48.522](0.304s) ok 60 - host name matching with X.509 Subject Alternative Names 1 [02:20:48.522](0.000s) ok 61 - host name matching with X.509 Subject Alternative Names 1: no stderr [02:20:48.567](0.045s) ok 62 - host name matching with X.509 Subject Alternative Names 2 [02:20:48.567](0.000s) ok 63 - host name matching with X.509 Subject Alternative Names 2: no stderr [02:20:48.617](0.050s) ok 64 - host name matching with X.509 Subject Alternative Names wildcard [02:20:48.617](0.000s) ok 65 - host name matching with X.509 Subject Alternative Names wildcard: no stderr [02:20:48.647](0.030s) ok 66 - host name not matching with X.509 Subject Alternative Names [02:20:48.648](0.000s) ok 67 - host name not matching with X.509 Subject Alternative Names: matches [02:20:48.685](0.037s) ok 68 - host name not matching with X.509 Subject Alternative Names wildcard [02:20:48.685](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 35751 [02:20:48.956](0.271s) ok 70 - host name matching with a single X.509 Subject Alternative Name [02:20:48.956](0.000s) ok 71 - host name matching with a single X.509 Subject Alternative Name: no stderr [02:20:49.010](0.054s) ok 72 - host name not matching with a single X.509 Subject Alternative Name [02:20:49.010](0.000s) ok 73 - host name not matching with a single X.509 Subject Alternative Name: matches [02:20:49.045](0.035s) ok 74 - host name not matching with a single X.509 Subject Alternative Name wildcard [02:20:49.045](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 35825 [02:20:49.426](0.381s) ok 76 - host matching an IPv4 address (Subject Alternative Name 1) [02:20:49.427](0.000s) ok 77 - host matching an IPv4 address (Subject Alternative Name 1): no stderr [02:20:49.478](0.052s) ok 78 - host matching an IPv4 address in alternate form (Subject Alternative Name 1) [02:20:49.478](0.000s) ok 79 - host matching an IPv4 address in alternate form (Subject Alternative Name 1): no stderr [02:20:49.541](0.062s) ok 80 - host not matching an IPv4 address (Subject Alternative Name 1) [02:20:49.541](0.000s) ok 81 - host not matching an IPv4 address (Subject Alternative Name 1): matches [02:20:49.586](0.045s) ok 82 - host matching an IPv6 address (Subject Alternative Name 2) [02:20:49.586](0.000s) ok 83 - host matching an IPv6 address (Subject Alternative Name 2): no stderr [02:20:49.623](0.037s) ok 84 - host matching an IPv6 address in alternate form (Subject Alternative Name 2) [02:20:49.624](0.000s) ok 85 - host matching an IPv6 address in alternate form (Subject Alternative Name 2): no stderr [02:20:49.676](0.052s) ok 86 - host matching an IPv6 address in mixed form (Subject Alternative Name 2) [02:20:49.676](0.000s) ok 87 - host matching an IPv6 address in mixed form (Subject Alternative Name 2): no stderr [02:20:49.707](0.031s) ok 88 - host not matching an IPv6 address (Subject Alternative Name 2) [02:20:49.708](0.000s) ok 89 - host not matching an IPv6 address (Subject Alternative Name 2): matches [02:20:49.772](0.064s) ok 90 - IPv6 host with CIDR mask does not match [02:20:49.772](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 35957 [02:20:50.050](0.278s) ok 92 - certificate with both a CN and SANs 1 [02:20:50.050](0.000s) ok 93 - certificate with both a CN and SANs 1: no stderr [02:20:50.095](0.044s) ok 94 - certificate with both a CN and SANs 2 [02:20:50.095](0.000s) ok 95 - certificate with both a CN and SANs 2: no stderr [02:20:50.128](0.033s) ok 96 - certificate with both a CN and SANs ignores CN [02:20:50.128](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 36023 [02:20:50.388](0.260s) ok 98 - certificate with both a CN and IP SANs matches CN [02:20:50.388](0.000s) ok 99 - certificate with both a CN and IP SANs matches CN: no stderr [02:20:50.433](0.045s) ok 100 - certificate with both a CN and IP SANs matches SAN 1 [02:20:50.434](0.000s) ok 101 - certificate with both a CN and IP SANs matches SAN 1: no stderr [02:20:50.465](0.031s) ok 102 - certificate with both a CN and IP SANs matches SAN 2 [02:20:50.465](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 36082 [02:20:50.675](0.210s) ok 104 - certificate with both an IP CN and IP SANs 1 [02:20:50.676](0.000s) ok 105 - certificate with both an IP CN and IP SANs 1: no stderr [02:20:50.719](0.043s) ok 106 - certificate with both an IP CN and IP SANs 2 [02:20:50.719](0.000s) ok 107 - certificate with both an IP CN and IP SANs 2: no stderr [02:20:50.748](0.029s) ok 108 - certificate with both an IP CN and IP SANs ignores CN [02:20:50.748](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 36132 [02:20:51.041](0.293s) ok 110 - certificate with both an IP CN and DNS SANs matches CN [02:20:51.041](0.000s) ok 111 - certificate with both an IP CN and DNS SANs matches CN: no stderr [02:20:51.072](0.031s) ok 112 - certificate with both an IP CN and DNS SANs matches SAN 1 [02:20:51.073](0.000s) ok 113 - certificate with both an IP CN and DNS SANs matches SAN 1: no stderr [02:20:51.101](0.028s) ok 114 - certificate with both an IP CN and DNS SANs matches SAN 2 [02:20:51.101](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 36174 [02:20:51.361](0.259s) ok 116 - server certificate without CN or SANs sslmode=verify-ca [02:20:51.361](0.000s) ok 117 - server certificate without CN or SANs sslmode=verify-ca: no stderr [02:20:51.396](0.035s) ok 118 - server certificate without CN or SANs sslmode=verify-full [02:20:51.396](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 36217 [02:20:51.654](0.257s) ok 120 - sslrootcert=system does not connect with private CA [02:20:51.654](0.000s) ok 121 - sslrootcert=system does not connect with private CA: matches [02:20:51.668](0.014s) ok 122 - sslrootcert=system only accepts sslmode=verify-full [02:20:51.668](0.000s) ok 123 - sslrootcert=system only accepts sslmode=verify-full: matches [02:20:51.725](0.057s) ok 124 - sslrootcert=system connects with overridden SSL_CERT_FILE [02:20:51.725](0.000s) ok 125 - sslrootcert=system connects with overridden SSL_CERT_FILE: no stderr [02:20:51.764](0.038s) ok 126 - sslrootcert=system defaults to sslmode=verify-full [02:20:51.764](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 36272 [02:20:52.028](0.264s) ok 128 - connects without client-side CRL [02:20:52.029](0.000s) ok 129 - connects without client-side CRL: no stderr [02:20:52.070](0.042s) ok 130 - does not connect with client-side CRL file [02:20:52.071](0.000s) ok 131 - does not connect with client-side CRL file: matches [02:20:52.105](0.034s) ok 132 - does not connect with client-side CRL directory [02:20:52.105](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() [02:20:52.144](0.039s) ok 134 - pg_stat_ssl view without client certificate: exit code 0 [02:20:52.145](0.000s) ok 135 - pg_stat_ssl view without client certificate: no stderr [02:20:52.145](0.000s) ok 136 - pg_stat_ssl view without client certificate: matches [02:20:52.195](0.050s) ok 137 - connection success with correct range of TLS protocol versions [02:20:52.195](0.000s) ok 138 - connection success with correct range of TLS protocol versions: no stderr [02:20:52.215](0.020s) ok 139 - connection failure with incorrect range of TLS protocol versions [02:20:52.216](0.000s) ok 140 - connection failure with incorrect range of TLS protocol versions: matches [02:20:52.234](0.018s) ok 141 - connection failure with an incorrect SSL protocol minimum bound [02:20:52.234](0.000s) ok 142 - connection failure with an incorrect SSL protocol minimum bound: matches [02:20:52.253](0.019s) ok 143 - connection failure with an incorrect SSL protocol maximum bound [02:20:52.253](0.000s) ok 144 - connection failure with an incorrect SSL protocol maximum bound: matches [02:20:52.253](0.000s) # running server tests [02:20:52.284](0.031s) ok 145 - certificate authorization fails without client cert [02:20:52.285](0.000s) ok 146 - certificate authorization fails without client cert: matches [02:20:52.359](0.074s) ok 147 - certificate authorization succeeds with correct client cert in PEM format [02:20:52.359](0.000s) ok 148 - certificate authorization succeeds with correct client cert in PEM format: no stderr [02:20:52.393](0.034s) ok 149 - certificate authorization succeeds with correct client cert in DER format [02:20:52.393](0.000s) ok 150 - certificate authorization succeeds with correct client cert in DER format: no stderr [02:20:52.458](0.064s) ok 151 - certificate authorization succeeds with correct client cert in encrypted PEM format [02:20:52.458](0.000s) ok 152 - certificate authorization succeeds with correct client cert in encrypted PEM format: no stderr [02:20:52.534](0.076s) ok 153 - certificate authorization succeeds with correct client cert in encrypted DER format [02:20:52.535](0.000s) ok 154 - certificate authorization succeeds with correct client cert in encrypted DER format: no stderr [02:20:52.588](0.053s) ok 155 - certificate authorization succeeds with correct client cert and sslcertmode=require [02:20:52.588](0.000s) ok 156 - certificate authorization succeeds with correct client cert and sslcertmode=require: no stderr [02:20:52.634](0.046s) ok 157 - certificate authorization succeeds with correct client cert and sslcertmode=allow [02:20:52.634](0.000s) ok 158 - certificate authorization succeeds with correct client cert and sslcertmode=allow: no stderr [02:20:52.667](0.033s) ok 159 - certificate authorization fails with correct client cert and sslcertmode=disable [02:20:52.668](0.000s) ok 160 - certificate authorization fails with correct client cert and sslcertmode=disable: matches [02:20:52.704](0.036s) ok 161 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format [02:20:52.704](0.000s) ok 162 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format: matches [02:20:52.756](0.052s) ok 163 - certificate authorization succeeds with DN mapping [02:20:52.757](0.000s) ok 164 - certificate authorization succeeds with DN mapping: no stderr [02:20:52.757](0.000s) ok 165 - certificate authorization succeeds with DN mapping: log matches [02:20:52.813](0.055s) ok 166 - certificate authorization succeeds with DN regex mapping [02:20:52.813](0.000s) ok 167 - certificate authorization succeeds with DN regex mapping: no stderr [02:20:52.872](0.060s) ok 168 - certificate authorization succeeds with CN mapping [02:20:52.873](0.000s) ok 169 - certificate authorization succeeds with CN mapping: no stderr [02:20:52.873](0.000s) ok 170 - certificate authorization succeeds with CN mapping: log matches [02:20:52.874](0.000s) not ok 171 # TODO & SKIP Need Pty support [02:20:52.874](0.000s) not ok 172 # TODO & SKIP Need Pty support [02:20:52.874](0.000s) not ok 173 # TODO & SKIP Need Pty support [02:20:52.874](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_JBdz/client.key -c SELECT * FROM pg_stat_ssl WHERE pid = pg_backend_pid() [02:20:52.920](0.046s) ok 175 - pg_stat_ssl with client certificate: exit code 0 [02:20:52.921](0.000s) ok 176 - pg_stat_ssl with client certificate: no stderr [02:20:52.921](0.000s) ok 177 - pg_stat_ssl with client certificate: matches [02:20:52.944](0.023s) ok 178 - certificate authorization fails because of file permissions [02:20:52.944](0.000s) ok 179 - certificate authorization fails because of file permissions: matches [02:20:52.973](0.029s) ok 180 - certificate authorization fails with client cert belonging to another user [02:20:52.973](0.000s) ok 181 - certificate authorization fails with client cert belonging to another user: matches [02:20:53.025](0.052s) ok 182 - certificate authorization fails with revoked client cert [02:20:53.026](0.000s) ok 183 - certificate authorization fails with revoked client cert: matches [02:20:53.026](0.000s) ok 184 - certificate authorization fails with revoked client cert: log does not match [02:20:53.071](0.045s) ok 185 - auth_option clientcert=verify-full succeeds with matching username and Common Name [02:20:53.071](0.000s) ok 186 - auth_option clientcert=verify-full succeeds with matching username and Common Name: no stderr [02:20:53.072](0.000s) ok 187 - auth_option clientcert=verify-full succeeds with matching username and Common Name: log matches [02:20:53.104](0.033s) ok 188 - auth_option clientcert=verify-full fails with mismatching username and Common Name [02:20:53.105](0.000s) ok 189 - auth_option clientcert=verify-full fails with mismatching username and Common Name: matches [02:20:53.105](0.000s) ok 190 - auth_option clientcert=verify-full fails with mismatching username and Common Name: log does not match [02:20:53.141](0.036s) ok 191 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name [02:20:53.142](0.000s) ok 192 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name: no stderr [02:20:53.142](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 36592 [02:20:53.406](0.264s) ok 194 - intermediate client certificate is provided by client [02:20:53.406](0.000s) ok 195 - intermediate client certificate is provided by client: no stderr [02:20:53.433](0.027s) ok 196 - intermediate client certificate is missing [02:20:53.433](0.000s) ok 197 - intermediate client certificate is missing: matches [02:20:53.474](0.040s) ok 198 - logged client certificate Subjects are truncated if they're too long [02:20:53.474](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 36669 [02:20:53.708](0.234s) ok 200 - intermediate client certificate is untrusted [02:20:53.708](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 36725 [02:20:53.966](0.258s) ok 202 - certificate authorization fails with revoked client cert with server-side CRL directory [02:20:53.967](0.000s) ok 203 - certificate authorization fails with revoked client cert with server-side CRL directory: matches [02:20:54.000](0.033s) ok 204 - certificate authorization fails with revoked UTF-8 client cert with server-side CRL directory [02:20:54.000](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 36775 [02:20:54.235](0.234s) not ok 206 - connect with valid stapled ocsp response when sslocspstapling=1 [02:20:54.235](0.000s) [02:20:54.235](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1' # at t/001_ssltests.pl line 923. [02:20:54.235](0.000s) # got: '2' # expected: '0' [02:20:54.236](0.000s) not ok 207 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [02:20:54.236](0.000s) [02:20:54.236](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1: no stderr' # at t/001_ssltests.pl line 923. [02:20:54.236](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 60739 failed: SSL SYSCALL error: EOF detected' # expected: '' [02:20:54.280](0.044s) ok 208 - connect without requesting ocsp response when sslocspstapling=0 [02:20:54.281](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 36862 [02:20:54.516](0.235s) ok 210 - failed with a revoked ocsp response when sslocspstapling=1 [02:20:54.558](0.042s) ok 211 - connect without requesting ocsp response when sslocspstapling=0 [02:20:54.558](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 36897 [02:20:54.796](0.238s) ok 213 - failed with a revoked ocsp response when sslocspstapling=1 [02:20:54.839](0.042s) ok 214 - connect without requesting ocsp response when sslocspstapling=0 [02:20:54.839](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 36931 [02:20:55.080](0.241s) ok 216 - failed with an expired ocsp response when sslocspstapling=1 [02:20:55.126](0.046s) ok 217 - connect without requesting ocsp response when sslocspstapling=0 [02:20:55.127](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 36954 [02:20:55.366](0.239s) not ok 219 - connect with valid stapled ocsp response when sslocspstapling=1 [02:20:55.366](0.000s) [02:20:55.366](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1' # at t/001_ssltests.pl line 1001. [02:20:55.366](0.000s) # got: '2' # expected: '0' [02:20:55.367](0.000s) not ok 220 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [02:20:55.367](0.000s) [02:20:55.367](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1: no stderr' # at t/001_ssltests.pl line 1001. [02:20:55.367](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 60739 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: '' [02:20:55.409](0.042s) ok 221 - connect without requesting ocsp response when sslocspstapling=0 [02:20:55.409](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 36991 [02:20:55.651](0.242s) ok 223 - failed with a revoked ocsp response when sslocspstapling=1 [02:20:55.698](0.048s) ok 224 - connect without requesting ocsp response when sslocspstapling=0 [02:20:55.699](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 37032 [02:20:55.943](0.244s) ok 226 - failed with a revoked ocsp response when sslocspstapling=1 [02:20:55.986](0.043s) ok 227 - connect without requesting ocsp response when sslocspstapling=0 [02:20:55.986](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 37112 [02:20:56.218](0.232s) ok 229 - failed with an expired ocsp response when sslocspstapling=1 [02:20:56.259](0.040s) ok 230 - connect without requesting ocsp response when sslocspstapling=0 [02:20:56.259](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 37144 [02:20:56.490](0.231s) ok 232 - failed with an expired ocsp response when sslocspstapling=1 [02:20:56.530](0.041s) ok 233 - connect without requesting ocsp response when sslocspstapling=0 [02:20:56.531](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" [02:20:56.738](0.208s) Bail out! pg_ctl restart failed # No postmaster PID for node "primary"