[03:02:10.596](0.038s) # setting up data directory # Checking port 60493 # Found port 60493 Name: primary Data directory: /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata Backup directory: /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/backup Archive directory: /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/archives Connection string: port=60493 host=/tmp/I4Wfkd_Zpq Log file: /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log [03:02:10.601](0.005s) # initializing database system by copying initdb template # Running: cp -RPp /tmp/cirrus-ci-build/build/tmp_install/initdb-template /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata # Running: /tmp/cirrus-ci-build/build/src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata ### Starting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log -o --cluster-name=primary start waiting for server to start.... done server started # Postmaster PID for node "primary" is 38750 [03:02:10.772](0.171s) ok 1 - ssl_library parameter psql::1: WARNING: roles created by regression test cases should have names starting with "regress_" psql::1: WARNING: roles created by regression test cases should have names starting with "regress_" psql::1: WARNING: roles created by regression test cases should have names starting with "regress_" psql::1: WARNING: roles created by regression test cases should have names starting with "regress_" psql::1: WARNING: databases created by regression test cases should have names including "regression" psql::1: WARNING: databases created by regression test cases should have names including "regression" psql::1: WARNING: databases created by regression test cases should have names including "regression" psql::1: WARNING: databases created by regression test cases should have names including "regression" psql::1: WARNING: databases created by regression test cases should have names including "regression" psql::1: WARNING: databases created by regression test cases should have names including "regression" ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39031 [03:02:11.625](0.853s) # testing password-protected keys ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log # No postmaster PID for node "primary" [03:02:11.837](0.211s) ok 2 - restart fails with password-protected key file with wrong password ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log restart pg_ctl: PID file "/tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/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 39195 [03:02:11.946](0.109s) ok 3 - restart succeeds with password-protected key file ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log # No postmaster PID for node "primary" [03:02:12.157](0.211s) ok 4 - restart fails with incorrect SSL protocol bounds ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log restart pg_ctl: PID file "/tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/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 39325 [03:02:12.262](0.105s) ok 5 - restart succeeds with correct SSL protocol bounds [03:02:12.262](0.001s) # running client tests ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39373 [03:02:12.481](0.219s) ok 6 - server doesn't accept non-SSL connections [03:02:12.482](0.000s) ok 7 - server doesn't accept non-SSL connections: matches [03:02:12.500](0.019s) ok 8 - connect without server root cert sslmode=require [03:02:12.501](0.000s) ok 9 - connect without server root cert sslmode=require: no stderr [03:02:12.511](0.010s) ok 10 - connect without server root cert sslmode=verify-ca [03:02:12.511](0.000s) ok 11 - connect without server root cert sslmode=verify-ca: matches [03:02:12.521](0.010s) ok 12 - connect without server root cert sslmode=verify-full [03:02:12.521](0.000s) ok 13 - connect without server root cert sslmode=verify-full: matches [03:02:12.534](0.013s) ok 14 - connect with wrong server root cert sslmode=require [03:02:12.534](0.000s) ok 15 - connect with wrong server root cert sslmode=require: matches [03:02:12.547](0.013s) ok 16 - connect with wrong server root cert sslmode=verify-ca [03:02:12.547](0.000s) ok 17 - connect with wrong server root cert sslmode=verify-ca: matches [03:02:12.560](0.013s) ok 18 - connect with wrong server root cert sslmode=verify-full [03:02:12.560](0.001s) ok 19 - connect with wrong server root cert sslmode=verify-full: matches [03:02:12.573](0.013s) ok 20 - connect with server CA cert, without root CA [03:02:12.574](0.001s) ok 21 - connect with server CA cert, without root CA: matches [03:02:12.588](0.014s) ok 22 - connect with correct server CA cert file sslmode=require [03:02:12.588](0.000s) ok 23 - connect with correct server CA cert file sslmode=require: no stderr [03:02:12.603](0.014s) ok 24 - connect with correct server CA cert file sslmode=verify-ca [03:02:12.603](0.000s) ok 25 - connect with correct server CA cert file sslmode=verify-ca: no stderr [03:02:12.618](0.015s) ok 26 - connect with correct server CA cert file sslmode=verify-full [03:02:12.619](0.000s) ok 27 - connect with correct server CA cert file sslmode=verify-full: no stderr [03:02:12.632](0.013s) ok 28 - cert root file that contains two certificates, order 1 [03:02:12.632](0.000s) ok 29 - cert root file that contains two certificates, order 1: no stderr [03:02:12.646](0.014s) ok 30 - cert root file that contains two certificates, order 2 [03:02:12.646](0.000s) ok 31 - cert root file that contains two certificates, order 2: no stderr [03:02:12.660](0.014s) ok 32 - connect with sslcertmode=disable [03:02:12.661](0.000s) ok 33 - connect with sslcertmode=disable: no stderr [03:02:12.676](0.016s) ok 34 - connect with sslcertmode=allow [03:02:12.676](0.000s) ok 35 - connect with sslcertmode=allow: no stderr [03:02:12.691](0.015s) ok 36 - connect with sslcertmode=require fails without a client certificate [03:02:12.691](0.000s) ok 37 - connect with sslcertmode=require fails without a client certificate: matches [03:02:12.705](0.014s) ok 38 - sslcrl option with invalid file name [03:02:12.705](0.000s) ok 39 - sslcrl option with invalid file name: no stderr [03:02:12.718](0.013s) ok 40 - CRL belonging to a different CA [03:02:12.718](0.000s) ok 41 - CRL belonging to a different CA: matches [03:02:12.732](0.013s) ok 42 - directory CRL belonging to a different CA [03:02:12.732](0.000s) ok 43 - directory CRL belonging to a different CA: matches [03:02:12.749](0.017s) ok 44 - CRL with a non-revoked cert [03:02:12.749](0.000s) ok 45 - CRL with a non-revoked cert: no stderr [03:02:12.764](0.015s) ok 46 - directory CRL with a non-revoked cert [03:02:12.764](0.000s) ok 47 - directory CRL with a non-revoked cert: no stderr [03:02:12.778](0.014s) ok 48 - mismatch between host name and server certificate sslmode=require [03:02:12.778](0.000s) ok 49 - mismatch between host name and server certificate sslmode=require: no stderr [03:02:12.793](0.015s) ok 50 - mismatch between host name and server certificate sslmode=verify-ca [03:02:12.793](0.000s) ok 51 - mismatch between host name and server certificate sslmode=verify-ca: no stderr [03:02:12.807](0.014s) ok 52 - mismatch between host name and server certificate sslmode=verify-full [03:02:12.807](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39474 [03:02:13.033](0.226s) ok 54 - IP address in the Common Name [03:02:13.034](0.000s) ok 55 - IP address in the Common Name: no stderr [03:02:13.046](0.012s) ok 56 - mismatch between host name and server certificate IP address [03:02:13.046](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39504 [03:02:13.275](0.229s) ok 58 - IP address in a dNSName [03:02:13.276](0.001s) ok 59 - IP address in a dNSName: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39532 [03:02:13.507](0.231s) ok 60 - host name matching with X.509 Subject Alternative Names 1 [03:02:13.507](0.000s) ok 61 - host name matching with X.509 Subject Alternative Names 1: no stderr [03:02:13.524](0.016s) ok 62 - host name matching with X.509 Subject Alternative Names 2 [03:02:13.524](0.000s) ok 63 - host name matching with X.509 Subject Alternative Names 2: no stderr [03:02:13.538](0.014s) ok 64 - host name matching with X.509 Subject Alternative Names wildcard [03:02:13.538](0.000s) ok 65 - host name matching with X.509 Subject Alternative Names wildcard: no stderr [03:02:13.551](0.012s) ok 66 - host name not matching with X.509 Subject Alternative Names [03:02:13.551](0.000s) ok 67 - host name not matching with X.509 Subject Alternative Names: matches [03:02:13.563](0.013s) ok 68 - host name not matching with X.509 Subject Alternative Names wildcard [03:02:13.564](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39569 [03:02:13.792](0.228s) ok 70 - host name matching with a single X.509 Subject Alternative Name [03:02:13.792](0.000s) ok 71 - host name matching with a single X.509 Subject Alternative Name: no stderr [03:02:13.805](0.013s) ok 72 - host name not matching with a single X.509 Subject Alternative Name [03:02:13.806](0.000s) ok 73 - host name not matching with a single X.509 Subject Alternative Name: matches [03:02:13.818](0.013s) ok 74 - host name not matching with a single X.509 Subject Alternative Name wildcard [03:02:13.818](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39599 [03:02:14.058](0.239s) ok 76 - host matching an IPv4 address (Subject Alternative Name 1) [03:02:14.058](0.000s) ok 77 - host matching an IPv4 address (Subject Alternative Name 1): no stderr [03:02:14.071](0.014s) ok 78 - host matching an IPv4 address in alternate form (Subject Alternative Name 1) [03:02:14.072](0.000s) ok 79 - host matching an IPv4 address in alternate form (Subject Alternative Name 1): no stderr [03:02:14.083](0.012s) ok 80 - host not matching an IPv4 address (Subject Alternative Name 1) [03:02:14.083](0.000s) ok 81 - host not matching an IPv4 address (Subject Alternative Name 1): matches [03:02:14.098](0.014s) ok 82 - host matching an IPv6 address (Subject Alternative Name 2) [03:02:14.098](0.000s) ok 83 - host matching an IPv6 address (Subject Alternative Name 2): no stderr [03:02:14.113](0.015s) ok 84 - host matching an IPv6 address in alternate form (Subject Alternative Name 2) [03:02:14.113](0.000s) ok 85 - host matching an IPv6 address in alternate form (Subject Alternative Name 2): no stderr [03:02:14.128](0.014s) ok 86 - host matching an IPv6 address in mixed form (Subject Alternative Name 2) [03:02:14.128](0.000s) ok 87 - host matching an IPv6 address in mixed form (Subject Alternative Name 2): no stderr [03:02:14.141](0.013s) ok 88 - host not matching an IPv6 address (Subject Alternative Name 2) [03:02:14.142](0.000s) ok 89 - host not matching an IPv6 address (Subject Alternative Name 2): matches [03:02:14.155](0.014s) ok 90 - IPv6 host with CIDR mask does not match [03:02:14.155](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39636 [03:02:14.380](0.225s) ok 92 - certificate with both a CN and SANs 1 [03:02:14.381](0.000s) ok 93 - certificate with both a CN and SANs 1: no stderr [03:02:14.396](0.015s) ok 94 - certificate with both a CN and SANs 2 [03:02:14.396](0.000s) ok 95 - certificate with both a CN and SANs 2: no stderr [03:02:14.410](0.014s) ok 96 - certificate with both a CN and SANs ignores CN [03:02:14.410](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39661 [03:02:14.648](0.238s) ok 98 - certificate with both a CN and IP SANs matches CN [03:02:14.649](0.000s) ok 99 - certificate with both a CN and IP SANs matches CN: no stderr [03:02:14.663](0.015s) ok 100 - certificate with both a CN and IP SANs matches SAN 1 [03:02:14.664](0.000s) ok 101 - certificate with both a CN and IP SANs matches SAN 1: no stderr [03:02:14.678](0.014s) ok 102 - certificate with both a CN and IP SANs matches SAN 2 [03:02:14.678](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39685 [03:02:14.910](0.233s) ok 104 - certificate with both an IP CN and IP SANs 1 [03:02:14.911](0.000s) ok 105 - certificate with both an IP CN and IP SANs 1: no stderr [03:02:14.925](0.014s) ok 106 - certificate with both an IP CN and IP SANs 2 [03:02:14.925](0.000s) ok 107 - certificate with both an IP CN and IP SANs 2: no stderr [03:02:14.938](0.013s) ok 108 - certificate with both an IP CN and IP SANs ignores CN [03:02:14.938](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39709 [03:02:15.172](0.234s) ok 110 - certificate with both an IP CN and DNS SANs matches CN [03:02:15.172](0.000s) ok 111 - certificate with both an IP CN and DNS SANs matches CN: no stderr [03:02:15.185](0.012s) ok 112 - certificate with both an IP CN and DNS SANs matches SAN 1 [03:02:15.185](0.000s) ok 113 - certificate with both an IP CN and DNS SANs matches SAN 1: no stderr [03:02:15.197](0.012s) ok 114 - certificate with both an IP CN and DNS SANs matches SAN 2 [03:02:15.197](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39733 [03:02:15.429](0.232s) ok 116 - server certificate without CN or SANs sslmode=verify-ca [03:02:15.429](0.000s) ok 117 - server certificate without CN or SANs sslmode=verify-ca: no stderr [03:02:15.441](0.012s) ok 118 - server certificate without CN or SANs sslmode=verify-full [03:02:15.441](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39745 [03:02:15.669](0.228s) ok 120 - sslrootcert=system does not connect with private CA [03:02:15.669](0.000s) ok 121 - sslrootcert=system does not connect with private CA: matches [03:02:15.676](0.006s) ok 122 - sslrootcert=system only accepts sslmode=verify-full [03:02:15.676](0.000s) ok 123 - sslrootcert=system only accepts sslmode=verify-full: matches [03:02:15.693](0.017s) ok 124 - sslrootcert=system connects with overridden SSL_CERT_FILE [03:02:15.693](0.000s) ok 125 - sslrootcert=system connects with overridden SSL_CERT_FILE: no stderr [03:02:15.706](0.012s) ok 126 - sslrootcert=system defaults to sslmode=verify-full [03:02:15.706](0.000s) ok 127 - sslrootcert=system defaults to sslmode=verify-full: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39760 [03:02:15.940](0.235s) ok 128 - connects without client-side CRL [03:02:15.941](0.000s) ok 129 - connects without client-side CRL: no stderr [03:02:15.953](0.012s) ok 130 - does not connect with client-side CRL file [03:02:15.953](0.000s) ok 131 - does not connect with client-side CRL file: matches [03:02:15.965](0.012s) ok 132 - does not connect with client-side CRL directory [03:02:15.965](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() [03:02:15.980](0.014s) ok 134 - pg_stat_ssl view without client certificate: exit code 0 [03:02:15.980](0.000s) ok 135 - pg_stat_ssl view without client certificate: no stderr [03:02:15.980](0.000s) ok 136 - pg_stat_ssl view without client certificate: matches [03:02:15.994](0.014s) ok 137 - connection success with correct range of TLS protocol versions [03:02:15.994](0.000s) ok 138 - connection success with correct range of TLS protocol versions: no stderr [03:02:16.000](0.006s) ok 139 - connection failure with incorrect range of TLS protocol versions [03:02:16.001](0.000s) ok 140 - connection failure with incorrect range of TLS protocol versions: matches [03:02:16.007](0.006s) ok 141 - connection failure with an incorrect SSL protocol minimum bound [03:02:16.007](0.000s) ok 142 - connection failure with an incorrect SSL protocol minimum bound: matches [03:02:16.013](0.006s) ok 143 - connection failure with an incorrect SSL protocol maximum bound [03:02:16.013](0.000s) ok 144 - connection failure with an incorrect SSL protocol maximum bound: matches [03:02:16.013](0.000s) # running server tests [03:02:16.026](0.013s) ok 145 - certificate authorization fails without client cert [03:02:16.026](0.000s) ok 146 - certificate authorization fails without client cert: matches [03:02:16.047](0.021s) ok 147 - certificate authorization succeeds with correct client cert in PEM format [03:02:16.047](0.000s) ok 148 - certificate authorization succeeds with correct client cert in PEM format: no stderr [03:02:16.064](0.016s) ok 149 - certificate authorization succeeds with correct client cert in DER format [03:02:16.064](0.000s) ok 150 - certificate authorization succeeds with correct client cert in DER format: no stderr [03:02:16.081](0.017s) ok 151 - certificate authorization succeeds with correct client cert in encrypted PEM format [03:02:16.081](0.000s) ok 152 - certificate authorization succeeds with correct client cert in encrypted PEM format: no stderr [03:02:16.099](0.017s) ok 153 - certificate authorization succeeds with correct client cert in encrypted DER format [03:02:16.099](0.000s) ok 154 - certificate authorization succeeds with correct client cert in encrypted DER format: no stderr [03:02:16.115](0.016s) ok 155 - certificate authorization succeeds with correct client cert and sslcertmode=require [03:02:16.115](0.000s) ok 156 - certificate authorization succeeds with correct client cert and sslcertmode=require: no stderr [03:02:16.132](0.016s) ok 157 - certificate authorization succeeds with correct client cert and sslcertmode=allow [03:02:16.132](0.000s) ok 158 - certificate authorization succeeds with correct client cert and sslcertmode=allow: no stderr [03:02:16.146](0.014s) ok 159 - certificate authorization fails with correct client cert and sslcertmode=disable [03:02:16.146](0.000s) ok 160 - certificate authorization fails with correct client cert and sslcertmode=disable: matches [03:02:16.157](0.011s) ok 161 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format [03:02:16.157](0.000s) ok 162 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format: matches [03:02:16.176](0.019s) ok 163 - certificate authorization succeeds with DN mapping [03:02:16.176](0.000s) ok 164 - certificate authorization succeeds with DN mapping: no stderr [03:02:16.176](0.000s) ok 165 - certificate authorization succeeds with DN mapping: log matches [03:02:16.195](0.019s) ok 166 - certificate authorization succeeds with DN regex mapping [03:02:16.196](0.000s) ok 167 - certificate authorization succeeds with DN regex mapping: no stderr [03:02:16.216](0.020s) ok 168 - certificate authorization succeeds with CN mapping [03:02:16.216](0.000s) ok 169 - certificate authorization succeeds with CN mapping: no stderr [03:02:16.217](0.000s) ok 170 - certificate authorization succeeds with CN mapping: log matches [03:02:16.217](0.000s) not ok 171 # TODO & SKIP Need Pty support [03:02:16.217](0.000s) not ok 172 # TODO & SKIP Need Pty support [03:02:16.217](0.000s) not ok 173 # TODO & SKIP Need Pty support [03:02:16.217](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/build/testrun/ssl/001_ssltests/data/tmp_test_Sh_h/client.key -c SELECT * FROM pg_stat_ssl WHERE pid = pg_backend_pid() [03:02:16.252](0.035s) ok 175 - pg_stat_ssl with client certificate: exit code 0 [03:02:16.253](0.000s) ok 176 - pg_stat_ssl with client certificate: no stderr [03:02:16.253](0.000s) ok 177 - pg_stat_ssl with client certificate: matches [03:02:16.264](0.011s) ok 178 - certificate authorization fails because of file permissions [03:02:16.264](0.000s) ok 179 - certificate authorization fails because of file permissions: matches [03:02:16.280](0.016s) ok 180 - certificate authorization fails with client cert belonging to another user [03:02:16.280](0.000s) ok 181 - certificate authorization fails with client cert belonging to another user: matches [03:02:16.295](0.015s) ok 182 - certificate authorization fails with revoked client cert [03:02:16.295](0.000s) ok 183 - certificate authorization fails with revoked client cert: matches [03:02:16.295](0.000s) ok 184 - certificate authorization fails with revoked client cert: log does not match [03:02:16.316](0.020s) ok 185 - auth_option clientcert=verify-full succeeds with matching username and Common Name [03:02:16.316](0.000s) ok 186 - auth_option clientcert=verify-full succeeds with matching username and Common Name: no stderr [03:02:16.316](0.000s) ok 187 - auth_option clientcert=verify-full succeeds with matching username and Common Name: log matches [03:02:16.331](0.016s) ok 188 - auth_option clientcert=verify-full fails with mismatching username and Common Name [03:02:16.332](0.000s) ok 189 - auth_option clientcert=verify-full fails with mismatching username and Common Name: matches [03:02:16.332](0.000s) ok 190 - auth_option clientcert=verify-full fails with mismatching username and Common Name: log does not match [03:02:16.349](0.017s) ok 191 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name [03:02:16.350](0.000s) ok 192 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name: no stderr [03:02:16.350](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39820 [03:02:16.586](0.236s) ok 194 - intermediate client certificate is provided by client [03:02:16.586](0.000s) ok 195 - intermediate client certificate is provided by client: no stderr [03:02:16.601](0.014s) ok 196 - intermediate client certificate is missing [03:02:16.601](0.000s) ok 197 - intermediate client certificate is missing: matches [03:02:16.614](0.013s) ok 198 - logged client certificate Subjects are truncated if they're too long [03:02:16.614](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39834 [03:02:16.845](0.230s) ok 200 - intermediate client certificate is untrusted [03:02:16.845](0.000s) ok 201 - intermediate client certificate is untrusted: matches ### Restarting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39844 [03:02:17.076](0.231s) ok 202 - certificate authorization fails with revoked client cert with server-side CRL directory [03:02:17.077](0.000s) ok 203 - certificate authorization fails with revoked client cert with server-side CRL directory: matches [03:02:17.091](0.015s) ok 204 - certificate authorization fails with revoked UTF-8 client cert with server-side CRL directory [03:02:17.092](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39856 [03:02:17.320](0.228s) not ok 206 - connect with valid stapled ocsp response when sslocspstapling=1 [03:02:17.320](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1' # at /tmp/cirrus-ci-build/src/test/ssl/t/001_ssltests.pl line 923. [03:02:17.320](0.000s) # got: '2' # expected: '0' [03:02:17.321](0.000s) not ok 207 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [03:02:17.321](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1: no stderr' # at /tmp/cirrus-ci-build/src/test/ssl/t/001_ssltests.pl line 923. [03:02:17.321](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 60493 failed: SSL SYSCALL error: EOF detected' # expected: '' [03:02:17.340](0.019s) ok 208 - connect without requesting ocsp response when sslocspstapling=0 [03:02:17.340](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39868 [03:02:17.568](0.228s) ok 210 - failed with a revoked ocsp response when sslocspstapling=1 [03:02:17.586](0.018s) ok 211 - connect without requesting ocsp response when sslocspstapling=0 [03:02:17.586](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39880 [03:02:17.814](0.228s) ok 213 - failed with a revoked ocsp response when sslocspstapling=1 [03:02:17.832](0.018s) ok 214 - connect without requesting ocsp response when sslocspstapling=0 [03:02:17.832](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39892 [03:02:18.059](0.227s) ok 216 - failed with an expired ocsp response when sslocspstapling=1 [03:02:18.079](0.019s) ok 217 - connect without requesting ocsp response when sslocspstapling=0 [03:02:18.079](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39904 [03:02:18.305](0.227s) not ok 219 - connect with valid stapled ocsp response when sslocspstapling=1 [03:02:18.306](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1' # at /tmp/cirrus-ci-build/src/test/ssl/t/001_ssltests.pl line 1001. [03:02:18.306](0.000s) # got: '2' # expected: '0' [03:02:18.306](0.000s) not ok 220 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [03:02:18.306](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1: no stderr' # at /tmp/cirrus-ci-build/src/test/ssl/t/001_ssltests.pl line 1001. [03:02:18.306](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 60493 failed: SSL SYSCALL error: EOF detected' # expected: '' [03:02:18.324](0.017s) ok 221 - connect without requesting ocsp response when sslocspstapling=0 [03:02:18.324](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39916 [03:02:18.552](0.228s) ok 223 - failed with a revoked ocsp response when sslocspstapling=1 [03:02:18.571](0.019s) ok 224 - connect without requesting ocsp response when sslocspstapling=0 [03:02:18.571](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39928 [03:02:18.798](0.227s) ok 226 - failed with a revoked ocsp response when sslocspstapling=1 [03:02:18.816](0.018s) ok 227 - connect without requesting ocsp response when sslocspstapling=0 [03:02:18.817](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39940 [03:02:19.043](0.226s) ok 229 - failed with an expired ocsp response when sslocspstapling=1 [03:02:19.060](0.018s) ok 230 - connect without requesting ocsp response when sslocspstapling=0 [03:02:19.061](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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 39952 [03:02:19.287](0.227s) ok 232 - failed with an expired ocsp response when sslocspstapling=1 [03:02:19.306](0.019s) ok 233 - connect without requesting ocsp response when sslocspstapling=0 [03:02:19.307](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/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/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/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log # No postmaster PID for node "primary" [03:02:19.523](0.216s) Bail out! pg_ctl restart failed # No postmaster PID for node "primary"