[21:32:36.524](0.027s) # setting up data directory # Checking port 64959 # Found port 64959 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=64959 host=/tmp/CFJ_yIlNwx Log file: /tmp/cirrus-ci-build/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log [21:32:36.563](0.038s) # 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 38776 [21:32:36.776](0.213s) 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 39021 [21:32:37.377](0.601s) # 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" [21:32:37.590](0.213s) 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 39157 [21:32:37.700](0.110s) 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" [21:32:37.914](0.214s) 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 39315 [21:32:38.023](0.109s) ok 5 - restart succeeds with correct SSL protocol bounds [21:32:38.023](0.000s) # 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 39392 [21:32:38.244](0.222s) ok 6 - server doesn't accept non-SSL connections [21:32:38.245](0.001s) ok 7 - server doesn't accept non-SSL connections: matches [21:32:38.263](0.018s) ok 8 - connect without server root cert sslmode=require [21:32:38.263](0.001s) ok 9 - connect without server root cert sslmode=require: no stderr [21:32:38.273](0.010s) ok 10 - connect without server root cert sslmode=verify-ca [21:32:38.274](0.001s) ok 11 - connect without server root cert sslmode=verify-ca: matches [21:32:38.284](0.010s) ok 12 - connect without server root cert sslmode=verify-full [21:32:38.284](0.001s) ok 13 - connect without server root cert sslmode=verify-full: matches [21:32:38.295](0.011s) ok 14 - connect with wrong server root cert sslmode=require [21:32:38.295](0.000s) ok 15 - connect with wrong server root cert sslmode=require: matches [21:32:38.308](0.012s) ok 16 - connect with wrong server root cert sslmode=verify-ca [21:32:38.308](0.000s) ok 17 - connect with wrong server root cert sslmode=verify-ca: matches [21:32:38.320](0.012s) ok 18 - connect with wrong server root cert sslmode=verify-full [21:32:38.320](0.000s) ok 19 - connect with wrong server root cert sslmode=verify-full: matches [21:32:38.333](0.013s) ok 20 - connect with server CA cert, without root CA [21:32:38.333](0.000s) ok 21 - connect with server CA cert, without root CA: matches [21:32:38.346](0.013s) ok 22 - connect with correct server CA cert file sslmode=require [21:32:38.346](0.000s) ok 23 - connect with correct server CA cert file sslmode=require: no stderr [21:32:38.360](0.014s) ok 24 - connect with correct server CA cert file sslmode=verify-ca [21:32:38.361](0.000s) ok 25 - connect with correct server CA cert file sslmode=verify-ca: no stderr [21:32:38.375](0.015s) ok 26 - connect with correct server CA cert file sslmode=verify-full [21:32:38.376](0.000s) ok 27 - connect with correct server CA cert file sslmode=verify-full: no stderr [21:32:38.388](0.013s) ok 28 - cert root file that contains two certificates, order 1 [21:32:38.389](0.000s) ok 29 - cert root file that contains two certificates, order 1: no stderr [21:32:38.403](0.015s) ok 30 - cert root file that contains two certificates, order 2 [21:32:38.404](0.000s) ok 31 - cert root file that contains two certificates, order 2: no stderr [21:32:38.419](0.015s) ok 32 - connect with sslcertmode=disable [21:32:38.419](0.000s) ok 33 - connect with sslcertmode=disable: no stderr [21:32:38.435](0.016s) ok 34 - connect with sslcertmode=allow [21:32:38.436](0.000s) ok 35 - connect with sslcertmode=allow: no stderr [21:32:38.450](0.014s) ok 36 - connect with sslcertmode=require fails without a client certificate [21:32:38.450](0.000s) ok 37 - connect with sslcertmode=require fails without a client certificate: matches [21:32:38.463](0.013s) ok 38 - sslcrl option with invalid file name [21:32:38.463](0.001s) ok 39 - sslcrl option with invalid file name: no stderr [21:32:38.476](0.012s) ok 40 - CRL belonging to a different CA [21:32:38.476](0.000s) ok 41 - CRL belonging to a different CA: matches [21:32:38.487](0.011s) ok 42 - directory CRL belonging to a different CA [21:32:38.487](0.000s) ok 43 - directory CRL belonging to a different CA: matches [21:32:38.502](0.015s) ok 44 - CRL with a non-revoked cert [21:32:38.502](0.000s) ok 45 - CRL with a non-revoked cert: no stderr [21:32:38.520](0.017s) ok 46 - directory CRL with a non-revoked cert [21:32:38.520](0.000s) ok 47 - directory CRL with a non-revoked cert: no stderr [21:32:38.534](0.014s) ok 48 - mismatch between host name and server certificate sslmode=require [21:32:38.534](0.000s) ok 49 - mismatch between host name and server certificate sslmode=require: no stderr [21:32:38.549](0.015s) ok 50 - mismatch between host name and server certificate sslmode=verify-ca [21:32:38.549](0.000s) ok 51 - mismatch between host name and server certificate sslmode=verify-ca: no stderr [21:32:38.562](0.013s) ok 52 - mismatch between host name and server certificate sslmode=verify-full [21:32:38.563](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 39500 [21:32:38.794](0.231s) ok 54 - IP address in the Common Name [21:32:38.794](0.000s) ok 55 - IP address in the Common Name: no stderr [21:32:38.807](0.013s) ok 56 - mismatch between host name and server certificate IP address [21:32:38.807](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 39528 [21:32:39.035](0.228s) ok 58 - IP address in a dNSName [21:32:39.036](0.000s) 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 39552 [21:32:39.266](0.231s) ok 60 - host name matching with X.509 Subject Alternative Names 1 [21:32:39.267](0.001s) ok 61 - host name matching with X.509 Subject Alternative Names 1: no stderr [21:32:39.282](0.015s) ok 62 - host name matching with X.509 Subject Alternative Names 2 [21:32:39.282](0.000s) ok 63 - host name matching with X.509 Subject Alternative Names 2: no stderr [21:32:39.296](0.014s) ok 64 - host name matching with X.509 Subject Alternative Names wildcard [21:32:39.296](0.000s) ok 65 - host name matching with X.509 Subject Alternative Names wildcard: no stderr [21:32:39.308](0.012s) ok 66 - host name not matching with X.509 Subject Alternative Names [21:32:39.309](0.000s) ok 67 - host name not matching with X.509 Subject Alternative Names: matches [21:32:39.321](0.013s) ok 68 - host name not matching with X.509 Subject Alternative Names wildcard [21:32:39.321](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 39593 [21:32:39.556](0.235s) ok 70 - host name matching with a single X.509 Subject Alternative Name [21:32:39.557](0.000s) ok 71 - host name matching with a single X.509 Subject Alternative Name: no stderr [21:32:39.569](0.013s) ok 72 - host name not matching with a single X.509 Subject Alternative Name [21:32:39.570](0.000s) ok 73 - host name not matching with a single X.509 Subject Alternative Name: matches [21:32:39.582](0.013s) ok 74 - host name not matching with a single X.509 Subject Alternative Name wildcard [21:32:39.583](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 39619 [21:32:39.822](0.240s) ok 76 - host matching an IPv4 address (Subject Alternative Name 1) [21:32:39.823](0.000s) ok 77 - host matching an IPv4 address (Subject Alternative Name 1): no stderr [21:32:39.837](0.014s) ok 78 - host matching an IPv4 address in alternate form (Subject Alternative Name 1) [21:32:39.837](0.000s) ok 79 - host matching an IPv4 address in alternate form (Subject Alternative Name 1): no stderr [21:32:39.850](0.013s) ok 80 - host not matching an IPv4 address (Subject Alternative Name 1) [21:32:39.850](0.000s) ok 81 - host not matching an IPv4 address (Subject Alternative Name 1): matches [21:32:39.864](0.014s) ok 82 - host matching an IPv6 address (Subject Alternative Name 2) [21:32:39.864](0.000s) ok 83 - host matching an IPv6 address (Subject Alternative Name 2): no stderr [21:32:39.879](0.015s) ok 84 - host matching an IPv6 address in alternate form (Subject Alternative Name 2) [21:32:39.879](0.000s) ok 85 - host matching an IPv6 address in alternate form (Subject Alternative Name 2): no stderr [21:32:39.894](0.015s) ok 86 - host matching an IPv6 address in mixed form (Subject Alternative Name 2) [21:32:39.894](0.000s) ok 87 - host matching an IPv6 address in mixed form (Subject Alternative Name 2): no stderr [21:32:39.908](0.013s) ok 88 - host not matching an IPv6 address (Subject Alternative Name 2) [21:32:39.908](0.000s) ok 89 - host not matching an IPv6 address (Subject Alternative Name 2): matches [21:32:39.920](0.012s) ok 90 - IPv6 host with CIDR mask does not match [21:32:39.920](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 39656 [21:32:40.156](0.236s) ok 92 - certificate with both a CN and SANs 1 [21:32:40.157](0.000s) ok 93 - certificate with both a CN and SANs 1: no stderr [21:32:40.172](0.015s) ok 94 - certificate with both a CN and SANs 2 [21:32:40.172](0.000s) ok 95 - certificate with both a CN and SANs 2: no stderr [21:32:40.185](0.013s) ok 96 - certificate with both a CN and SANs ignores CN [21:32:40.185](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 39681 [21:32:40.417](0.232s) ok 98 - certificate with both a CN and IP SANs matches CN [21:32:40.417](0.000s) ok 99 - certificate with both a CN and IP SANs matches CN: no stderr [21:32:40.432](0.015s) ok 100 - certificate with both a CN and IP SANs matches SAN 1 [21:32:40.433](0.000s) ok 101 - certificate with both a CN and IP SANs matches SAN 1: no stderr [21:32:40.448](0.015s) ok 102 - certificate with both a CN and IP SANs matches SAN 2 [21:32:40.448](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 39695 [21:32:40.682](0.234s) ok 104 - certificate with both an IP CN and IP SANs 1 [21:32:40.682](0.000s) ok 105 - certificate with both an IP CN and IP SANs 1: no stderr [21:32:40.698](0.015s) ok 106 - certificate with both an IP CN and IP SANs 2 [21:32:40.698](0.000s) ok 107 - certificate with both an IP CN and IP SANs 2: no stderr [21:32:40.710](0.012s) ok 108 - certificate with both an IP CN and IP SANs ignores CN [21:32:40.710](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 [21:32:40.942](0.231s) ok 110 - certificate with both an IP CN and DNS SANs matches CN [21:32:40.942](0.000s) ok 111 - certificate with both an IP CN and DNS SANs matches CN: no stderr [21:32:40.960](0.018s) ok 112 - certificate with both an IP CN and DNS SANs matches SAN 1 [21:32:40.961](0.000s) ok 113 - certificate with both an IP CN and DNS SANs matches SAN 1: no stderr [21:32:40.976](0.016s) ok 114 - certificate with both an IP CN and DNS SANs matches SAN 2 [21:32:40.976](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 39723 [21:32:41.211](0.234s) ok 116 - server certificate without CN or SANs sslmode=verify-ca [21:32:41.211](0.000s) ok 117 - server certificate without CN or SANs sslmode=verify-ca: no stderr [21:32:41.224](0.013s) ok 118 - server certificate without CN or SANs sslmode=verify-full [21:32:41.224](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 39735 [21:32:41.453](0.229s) ok 120 - sslrootcert=system does not connect with private CA [21:32:41.454](0.000s) ok 121 - sslrootcert=system does not connect with private CA: matches [21:32:41.459](0.006s) ok 122 - sslrootcert=system only accepts sslmode=verify-full [21:32:41.459](0.000s) ok 123 - sslrootcert=system only accepts sslmode=verify-full: matches [21:32:41.476](0.017s) ok 124 - sslrootcert=system connects with overridden SSL_CERT_FILE [21:32:41.476](0.000s) ok 125 - sslrootcert=system connects with overridden SSL_CERT_FILE: no stderr [21:32:41.490](0.013s) ok 126 - sslrootcert=system defaults to sslmode=verify-full [21:32:41.490](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 39750 [21:32:41.724](0.234s) ok 128 - connects without client-side CRL [21:32:41.724](0.000s) ok 129 - connects without client-side CRL: no stderr [21:32:41.735](0.011s) ok 130 - does not connect with client-side CRL file [21:32:41.736](0.000s) ok 131 - does not connect with client-side CRL file: matches [21:32:41.746](0.011s) ok 132 - does not connect with client-side CRL directory [21:32:41.747](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() [21:32:41.761](0.015s) ok 134 - pg_stat_ssl view without client certificate: exit code 0 [21:32:41.761](0.000s) ok 135 - pg_stat_ssl view without client certificate: no stderr [21:32:41.762](0.000s) ok 136 - pg_stat_ssl view without client certificate: matches [21:32:41.775](0.014s) ok 137 - connection success with correct range of TLS protocol versions [21:32:41.775](0.000s) ok 138 - connection success with correct range of TLS protocol versions: no stderr [21:32:41.781](0.006s) ok 139 - connection failure with incorrect range of TLS protocol versions [21:32:41.781](0.000s) ok 140 - connection failure with incorrect range of TLS protocol versions: matches [21:32:41.787](0.006s) ok 141 - connection failure with an incorrect SSL protocol minimum bound [21:32:41.787](0.000s) ok 142 - connection failure with an incorrect SSL protocol minimum bound: matches [21:32:41.793](0.005s) ok 143 - connection failure with an incorrect SSL protocol maximum bound [21:32:41.793](0.000s) ok 144 - connection failure with an incorrect SSL protocol maximum bound: matches [21:32:41.793](0.000s) # running server tests [21:32:41.807](0.014s) ok 145 - certificate authorization fails without client cert [21:32:41.807](0.000s) ok 146 - certificate authorization fails without client cert: matches [21:32:41.828](0.021s) ok 147 - certificate authorization succeeds with correct client cert in PEM format [21:32:41.828](0.000s) ok 148 - certificate authorization succeeds with correct client cert in PEM format: no stderr [21:32:41.844](0.016s) ok 149 - certificate authorization succeeds with correct client cert in DER format [21:32:41.844](0.000s) ok 150 - certificate authorization succeeds with correct client cert in DER format: no stderr [21:32:41.861](0.017s) ok 151 - certificate authorization succeeds with correct client cert in encrypted PEM format [21:32:41.862](0.000s) ok 152 - certificate authorization succeeds with correct client cert in encrypted PEM format: no stderr [21:32:41.878](0.016s) ok 153 - certificate authorization succeeds with correct client cert in encrypted DER format [21:32:41.878](0.000s) ok 154 - certificate authorization succeeds with correct client cert in encrypted DER format: no stderr [21:32:41.895](0.017s) ok 155 - certificate authorization succeeds with correct client cert and sslcertmode=require [21:32:41.896](0.000s) ok 156 - certificate authorization succeeds with correct client cert and sslcertmode=require: no stderr [21:32:41.913](0.017s) ok 157 - certificate authorization succeeds with correct client cert and sslcertmode=allow [21:32:41.913](0.000s) ok 158 - certificate authorization succeeds with correct client cert and sslcertmode=allow: no stderr [21:32:41.926](0.014s) ok 159 - certificate authorization fails with correct client cert and sslcertmode=disable [21:32:41.927](0.000s) ok 160 - certificate authorization fails with correct client cert and sslcertmode=disable: matches [21:32:41.937](0.010s) ok 161 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format [21:32:41.937](0.000s) ok 162 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format: matches [21:32:41.957](0.020s) ok 163 - certificate authorization succeeds with DN mapping [21:32:41.957](0.000s) ok 164 - certificate authorization succeeds with DN mapping: no stderr [21:32:41.958](0.000s) ok 165 - certificate authorization succeeds with DN mapping: log matches [21:32:41.977](0.020s) ok 166 - certificate authorization succeeds with DN regex mapping [21:32:41.978](0.000s) ok 167 - certificate authorization succeeds with DN regex mapping: no stderr [21:32:41.998](0.020s) ok 168 - certificate authorization succeeds with CN mapping [21:32:41.998](0.000s) ok 169 - certificate authorization succeeds with CN mapping: no stderr [21:32:41.998](0.000s) ok 170 - certificate authorization succeeds with CN mapping: log matches [21:32:41.998](0.000s) not ok 171 # TODO & SKIP Need Pty support [21:32:41.999](0.000s) not ok 172 # TODO & SKIP Need Pty support [21:32:41.999](0.000s) not ok 173 # TODO & SKIP Need Pty support [21:32:41.999](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_ixPL/client.key -c SELECT * FROM pg_stat_ssl WHERE pid = pg_backend_pid() [21:32:42.033](0.034s) ok 175 - pg_stat_ssl with client certificate: exit code 0 [21:32:42.033](0.000s) ok 176 - pg_stat_ssl with client certificate: no stderr [21:32:42.033](0.000s) ok 177 - pg_stat_ssl with client certificate: matches [21:32:42.043](0.010s) ok 178 - certificate authorization fails because of file permissions [21:32:42.044](0.000s) ok 179 - certificate authorization fails because of file permissions: matches [21:32:42.059](0.016s) ok 180 - certificate authorization fails with client cert belonging to another user [21:32:42.060](0.000s) ok 181 - certificate authorization fails with client cert belonging to another user: matches [21:32:42.073](0.014s) ok 182 - certificate authorization fails with revoked client cert [21:32:42.074](0.000s) ok 183 - certificate authorization fails with revoked client cert: matches [21:32:42.074](0.000s) ok 184 - certificate authorization fails with revoked client cert: log does not match [21:32:42.093](0.019s) ok 185 - auth_option clientcert=verify-full succeeds with matching username and Common Name [21:32:42.093](0.000s) ok 186 - auth_option clientcert=verify-full succeeds with matching username and Common Name: no stderr [21:32:42.094](0.000s) ok 187 - auth_option clientcert=verify-full succeeds with matching username and Common Name: log matches [21:32:42.107](0.013s) ok 188 - auth_option clientcert=verify-full fails with mismatching username and Common Name [21:32:42.107](0.000s) ok 189 - auth_option clientcert=verify-full fails with mismatching username and Common Name: matches [21:32:42.107](0.000s) ok 190 - auth_option clientcert=verify-full fails with mismatching username and Common Name: log does not match [21:32:42.123](0.015s) ok 191 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name [21:32:42.123](0.000s) ok 192 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name: no stderr [21:32:42.123](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 39810 [21:32:42.359](0.236s) ok 194 - intermediate client certificate is provided by client [21:32:42.359](0.000s) ok 195 - intermediate client certificate is provided by client: no stderr [21:32:42.372](0.013s) ok 196 - intermediate client certificate is missing [21:32:42.372](0.000s) ok 197 - intermediate client certificate is missing: matches [21:32:42.386](0.014s) ok 198 - logged client certificate Subjects are truncated if they're too long [21:32:42.387](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 39824 [21:32:42.619](0.232s) ok 200 - intermediate client certificate is untrusted [21:32:42.619](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 39834 [21:32:42.843](0.224s) ok 202 - certificate authorization fails with revoked client cert with server-side CRL directory [21:32:42.844](0.000s) ok 203 - certificate authorization fails with revoked client cert with server-side CRL directory: matches [21:32:42.857](0.013s) ok 204 - certificate authorization fails with revoked UTF-8 client cert with server-side CRL directory [21:32:42.857](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 39846 [21:32:43.085](0.227s) not ok 206 - connect with valid stapled ocsp response when sslocspstapling=1 [21:32:43.085](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. [21:32:43.085](0.000s) # got: '2' # expected: '0' [21:32:43.085](0.000s) not ok 207 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [21:32:43.086](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. [21:32:43.086](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 64959 failed: SSL SYSCALL error: EOF detected' # expected: '' [21:32:43.103](0.017s) ok 208 - connect without requesting ocsp response when sslocspstapling=0 [21:32:43.103](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 39858 [21:32:43.331](0.228s) ok 210 - failed with a revoked ocsp response when sslocspstapling=1 [21:32:43.351](0.019s) ok 211 - connect without requesting ocsp response when sslocspstapling=0 [21:32:43.351](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 39870 [21:32:43.578](0.227s) ok 213 - failed with a revoked ocsp response when sslocspstapling=1 [21:32:43.596](0.018s) ok 214 - connect without requesting ocsp response when sslocspstapling=0 [21:32:43.597](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 39882 [21:32:43.823](0.226s) ok 216 - failed with an expired ocsp response when sslocspstapling=1 [21:32:43.841](0.018s) ok 217 - connect without requesting ocsp response when sslocspstapling=0 [21:32:43.841](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 39894 [21:32:44.069](0.228s) not ok 219 - connect with valid stapled ocsp response when sslocspstapling=1 [21:32:44.069](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. [21:32:44.069](0.000s) # got: '2' # expected: '0' [21:32:44.070](0.000s) not ok 220 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [21:32:44.070](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. [21:32:44.070](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 64959 failed: SSL SYSCALL error: EOF detected' # expected: '' [21:32:44.089](0.019s) ok 221 - connect without requesting ocsp response when sslocspstapling=0 [21:32:44.089](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 39906 [21:32:44.317](0.228s) ok 223 - failed with a revoked ocsp response when sslocspstapling=1 [21:32:44.335](0.018s) ok 224 - connect without requesting ocsp response when sslocspstapling=0 [21:32:44.336](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 39918 [21:32:44.563](0.228s) ok 226 - failed with a revoked ocsp response when sslocspstapling=1 [21:32:44.581](0.018s) ok 227 - connect without requesting ocsp response when sslocspstapling=0 [21:32:44.581](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 39930 [21:32:44.808](0.227s) ok 229 - failed with an expired ocsp response when sslocspstapling=1 [21:32:44.826](0.018s) ok 230 - connect without requesting ocsp response when sslocspstapling=0 [21:32:44.826](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 39942 [21:32:45.053](0.227s) ok 232 - failed with an expired ocsp response when sslocspstapling=1 [21:32:45.071](0.018s) ok 233 - connect without requesting ocsp response when sslocspstapling=0 [21:32:45.072](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" [21:32:45.283](0.211s) Bail out! pg_ctl restart failed # No postmaster PID for node "primary"