[11:26:22.632](0.067s) # setting up data directory # Checking port 56491 # Found port 56491 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=56491 host=/tmp/vydyfLpYCX Log file: /tmp/cirrus-ci-build/src/test/ssl/tmp_check/log/001_ssltests_primary.log [11:26:22.645](0.013s) # 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 27908 [11:26:23.015](0.370s) 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 28126 [11:26:24.569](1.555s) # 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" [11:26:24.781](0.212s) 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 28226 [11:26:25.003](0.221s) 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" [11:26:25.219](0.216s) 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 28327 [11:26:25.338](0.120s) ok 5 - restart succeeds with correct SSL protocol bounds [11:26:25.339](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 28396 [11:26:25.681](0.342s) ok 6 - server doesn't accept non-SSL connections [11:26:25.681](0.000s) ok 7 - server doesn't accept non-SSL connections: matches [11:26:25.752](0.071s) ok 8 - connect without server root cert sslmode=require [11:26:25.753](0.000s) ok 9 - connect without server root cert sslmode=require: no stderr [11:26:25.803](0.051s) ok 10 - connect without server root cert sslmode=verify-ca [11:26:25.804](0.000s) ok 11 - connect without server root cert sslmode=verify-ca: matches [11:26:25.840](0.037s) ok 12 - connect without server root cert sslmode=verify-full [11:26:25.841](0.000s) ok 13 - connect without server root cert sslmode=verify-full: matches [11:26:25.899](0.059s) ok 14 - connect with wrong server root cert sslmode=require [11:26:25.900](0.000s) ok 15 - connect with wrong server root cert sslmode=require: matches [11:26:25.941](0.041s) ok 16 - connect with wrong server root cert sslmode=verify-ca [11:26:25.941](0.000s) ok 17 - connect with wrong server root cert sslmode=verify-ca: matches [11:26:25.991](0.050s) ok 18 - connect with wrong server root cert sslmode=verify-full [11:26:25.991](0.000s) ok 19 - connect with wrong server root cert sslmode=verify-full: matches [11:26:26.043](0.052s) ok 20 - connect with server CA cert, without root CA [11:26:26.044](0.000s) ok 21 - connect with server CA cert, without root CA: matches [11:26:26.094](0.050s) ok 22 - connect with correct server CA cert file sslmode=require [11:26:26.094](0.000s) ok 23 - connect with correct server CA cert file sslmode=require: no stderr [11:26:26.152](0.059s) ok 24 - connect with correct server CA cert file sslmode=verify-ca [11:26:26.153](0.000s) ok 25 - connect with correct server CA cert file sslmode=verify-ca: no stderr [11:26:26.208](0.055s) ok 26 - connect with correct server CA cert file sslmode=verify-full [11:26:26.208](0.000s) ok 27 - connect with correct server CA cert file sslmode=verify-full: no stderr [11:26:26.257](0.049s) ok 28 - cert root file that contains two certificates, order 1 [11:26:26.257](0.000s) ok 29 - cert root file that contains two certificates, order 1: no stderr [11:26:26.304](0.047s) ok 30 - cert root file that contains two certificates, order 2 [11:26:26.304](0.000s) ok 31 - cert root file that contains two certificates, order 2: no stderr [11:26:26.339](0.035s) ok 32 - connect with sslcertmode=disable [11:26:26.339](0.000s) ok 33 - connect with sslcertmode=disable: no stderr [11:26:26.391](0.051s) ok 34 - connect with sslcertmode=allow [11:26:26.391](0.000s) ok 35 - connect with sslcertmode=allow: no stderr [11:26:26.432](0.042s) ok 36 - connect with sslcertmode=require fails without a client certificate [11:26:26.433](0.000s) ok 37 - connect with sslcertmode=require fails without a client certificate: matches [11:26:26.470](0.037s) ok 38 - sslcrl option with invalid file name [11:26:26.470](0.000s) ok 39 - sslcrl option with invalid file name: no stderr [11:26:26.508](0.038s) ok 40 - CRL belonging to a different CA [11:26:26.508](0.000s) ok 41 - CRL belonging to a different CA: matches [11:26:26.539](0.032s) ok 42 - directory CRL belonging to a different CA [11:26:26.540](0.000s) ok 43 - directory CRL belonging to a different CA: matches [11:26:26.580](0.041s) ok 44 - CRL with a non-revoked cert [11:26:26.581](0.000s) ok 45 - CRL with a non-revoked cert: no stderr [11:26:26.624](0.044s) ok 46 - directory CRL with a non-revoked cert [11:26:26.625](0.000s) ok 47 - directory CRL with a non-revoked cert: no stderr [11:26:26.676](0.052s) ok 48 - mismatch between host name and server certificate sslmode=require [11:26:26.677](0.000s) ok 49 - mismatch between host name and server certificate sslmode=require: no stderr [11:26:26.706](0.029s) ok 50 - mismatch between host name and server certificate sslmode=verify-ca [11:26:26.706](0.000s) ok 51 - mismatch between host name and server certificate sslmode=verify-ca: no stderr [11:26:26.751](0.045s) ok 52 - mismatch between host name and server certificate sslmode=verify-full [11:26:26.751](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 28676 [11:26:27.059](0.308s) ok 54 - IP address in the Common Name [11:26:27.059](0.000s) ok 55 - IP address in the Common Name: no stderr [11:26:27.120](0.061s) ok 56 - mismatch between host name and server certificate IP address [11:26:27.120](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 28741 [11:26:27.410](0.290s) ok 58 - IP address in a dNSName [11:26:27.411](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 28801 [11:26:27.692](0.281s) ok 60 - host name matching with X.509 Subject Alternative Names 1 [11:26:27.692](0.000s) ok 61 - host name matching with X.509 Subject Alternative Names 1: no stderr [11:26:27.742](0.050s) ok 62 - host name matching with X.509 Subject Alternative Names 2 [11:26:27.742](0.000s) ok 63 - host name matching with X.509 Subject Alternative Names 2: no stderr [11:26:27.793](0.051s) ok 64 - host name matching with X.509 Subject Alternative Names wildcard [11:26:27.793](0.000s) ok 65 - host name matching with X.509 Subject Alternative Names wildcard: no stderr [11:26:27.841](0.048s) ok 66 - host name not matching with X.509 Subject Alternative Names [11:26:27.842](0.000s) ok 67 - host name not matching with X.509 Subject Alternative Names: matches [11:26:27.876](0.034s) ok 68 - host name not matching with X.509 Subject Alternative Names wildcard [11:26:27.876](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 28862 [11:26:28.283](0.406s) ok 70 - host name matching with a single X.509 Subject Alternative Name [11:26:28.283](0.000s) ok 71 - host name matching with a single X.509 Subject Alternative Name: no stderr [11:26:28.334](0.051s) ok 72 - host name not matching with a single X.509 Subject Alternative Name [11:26:28.334](0.000s) ok 73 - host name not matching with a single X.509 Subject Alternative Name: matches [11:26:28.386](0.053s) ok 74 - host name not matching with a single X.509 Subject Alternative Name wildcard [11:26:28.387](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 28940 [11:26:28.729](0.342s) ok 76 - host matching an IPv4 address (Subject Alternative Name 1) [11:26:28.729](0.000s) ok 77 - host matching an IPv4 address (Subject Alternative Name 1): no stderr [11:26:28.778](0.048s) ok 78 - host matching an IPv4 address in alternate form (Subject Alternative Name 1) [11:26:28.778](0.000s) ok 79 - host matching an IPv4 address in alternate form (Subject Alternative Name 1): no stderr [11:26:28.807](0.029s) ok 80 - host not matching an IPv4 address (Subject Alternative Name 1) [11:26:28.807](0.000s) ok 81 - host not matching an IPv4 address (Subject Alternative Name 1): matches [11:26:28.867](0.060s) ok 82 - host matching an IPv6 address (Subject Alternative Name 2) [11:26:28.868](0.000s) ok 83 - host matching an IPv6 address (Subject Alternative Name 2): no stderr [11:26:28.919](0.052s) ok 84 - host matching an IPv6 address in alternate form (Subject Alternative Name 2) [11:26:28.920](0.000s) ok 85 - host matching an IPv6 address in alternate form (Subject Alternative Name 2): no stderr [11:26:28.954](0.034s) ok 86 - host matching an IPv6 address in mixed form (Subject Alternative Name 2) [11:26:28.954](0.000s) ok 87 - host matching an IPv6 address in mixed form (Subject Alternative Name 2): no stderr [11:26:28.990](0.036s) ok 88 - host not matching an IPv6 address (Subject Alternative Name 2) [11:26:28.991](0.000s) ok 89 - host not matching an IPv6 address (Subject Alternative Name 2): matches [11:26:29.024](0.034s) ok 90 - IPv6 host with CIDR mask does not match [11:26:29.025](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 29095 [11:26:29.318](0.293s) ok 92 - certificate with both a CN and SANs 1 [11:26:29.318](0.000s) ok 93 - certificate with both a CN and SANs 1: no stderr [11:26:29.360](0.042s) ok 94 - certificate with both a CN and SANs 2 [11:26:29.361](0.000s) ok 95 - certificate with both a CN and SANs 2: no stderr [11:26:29.387](0.026s) ok 96 - certificate with both a CN and SANs ignores CN [11:26:29.387](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 29197 [11:26:29.655](0.268s) ok 98 - certificate with both a CN and IP SANs matches CN [11:26:29.656](0.000s) ok 99 - certificate with both a CN and IP SANs matches CN: no stderr [11:26:29.698](0.042s) ok 100 - certificate with both a CN and IP SANs matches SAN 1 [11:26:29.698](0.000s) ok 101 - certificate with both a CN and IP SANs matches SAN 1: no stderr [11:26:29.763](0.065s) ok 102 - certificate with both a CN and IP SANs matches SAN 2 [11:26:29.763](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 29292 [11:26:30.057](0.294s) ok 104 - certificate with both an IP CN and IP SANs 1 [11:26:30.057](0.000s) ok 105 - certificate with both an IP CN and IP SANs 1: no stderr [11:26:30.091](0.034s) ok 106 - certificate with both an IP CN and IP SANs 2 [11:26:30.091](0.000s) ok 107 - certificate with both an IP CN and IP SANs 2: no stderr [11:26:30.118](0.027s) ok 108 - certificate with both an IP CN and IP SANs ignores CN [11:26:30.118](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 29364 [11:26:30.531](0.413s) ok 110 - certificate with both an IP CN and DNS SANs matches CN [11:26:30.531](0.000s) ok 111 - certificate with both an IP CN and DNS SANs matches CN: no stderr [11:26:30.588](0.057s) ok 112 - certificate with both an IP CN and DNS SANs matches SAN 1 [11:26:30.588](0.000s) ok 113 - certificate with both an IP CN and DNS SANs matches SAN 1: no stderr [11:26:30.655](0.067s) ok 114 - certificate with both an IP CN and DNS SANs matches SAN 2 [11:26:30.655](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 29498 [11:26:31.012](0.358s) ok 116 - server certificate without CN or SANs sslmode=verify-ca [11:26:31.013](0.000s) ok 117 - server certificate without CN or SANs sslmode=verify-ca: no stderr [11:26:31.070](0.058s) ok 118 - server certificate without CN or SANs sslmode=verify-full [11:26:31.071](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 29607 [11:26:31.344](0.274s) ok 120 - sslrootcert=system does not connect with private CA [11:26:31.345](0.000s) ok 121 - sslrootcert=system does not connect with private CA: matches [11:26:31.372](0.028s) ok 122 - sslrootcert=system only accepts sslmode=verify-full [11:26:31.373](0.000s) ok 123 - sslrootcert=system only accepts sslmode=verify-full: matches [11:26:31.447](0.074s) ok 124 - sslrootcert=system connects with overridden SSL_CERT_FILE [11:26:31.447](0.000s) ok 125 - sslrootcert=system connects with overridden SSL_CERT_FILE: no stderr [11:26:31.488](0.041s) ok 126 - sslrootcert=system defaults to sslmode=verify-full [11:26:31.489](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 29676 [11:26:31.680](0.192s) ok 128 - connects without client-side CRL [11:26:31.681](0.000s) ok 129 - connects without client-side CRL: no stderr [11:26:31.735](0.054s) ok 130 - does not connect with client-side CRL file [11:26:31.735](0.000s) ok 131 - does not connect with client-side CRL file: matches [11:26:31.783](0.049s) ok 132 - does not connect with client-side CRL directory [11:26:31.784](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() [11:26:31.844](0.060s) ok 134 - pg_stat_ssl view without client certificate: exit code 0 [11:26:31.844](0.000s) ok 135 - pg_stat_ssl view without client certificate: no stderr [11:26:31.845](0.000s) ok 136 - pg_stat_ssl view without client certificate: matches [11:26:31.907](0.063s) ok 137 - connection success with correct range of TLS protocol versions [11:26:31.907](0.000s) ok 138 - connection success with correct range of TLS protocol versions: no stderr [11:26:31.934](0.026s) ok 139 - connection failure with incorrect range of TLS protocol versions [11:26:31.934](0.000s) ok 140 - connection failure with incorrect range of TLS protocol versions: matches [11:26:31.948](0.014s) ok 141 - connection failure with an incorrect SSL protocol minimum bound [11:26:31.948](0.000s) ok 142 - connection failure with an incorrect SSL protocol minimum bound: matches [11:26:31.980](0.032s) ok 143 - connection failure with an incorrect SSL protocol maximum bound [11:26:31.981](0.000s) ok 144 - connection failure with an incorrect SSL protocol maximum bound: matches [11:26:31.981](0.000s) # running server tests [11:26:32.036](0.055s) ok 145 - certificate authorization fails without client cert [11:26:32.037](0.000s) ok 146 - certificate authorization fails without client cert: matches [11:26:32.111](0.075s) ok 147 - certificate authorization succeeds with correct client cert in PEM format [11:26:32.111](0.000s) ok 148 - certificate authorization succeeds with correct client cert in PEM format: no stderr [11:26:32.150](0.039s) ok 149 - certificate authorization succeeds with correct client cert in DER format [11:26:32.150](0.000s) ok 150 - certificate authorization succeeds with correct client cert in DER format: no stderr [11:26:32.208](0.058s) ok 151 - certificate authorization succeeds with correct client cert in encrypted PEM format [11:26:32.208](0.000s) ok 152 - certificate authorization succeeds with correct client cert in encrypted PEM format: no stderr [11:26:32.261](0.052s) ok 153 - certificate authorization succeeds with correct client cert in encrypted DER format [11:26:32.261](0.000s) ok 154 - certificate authorization succeeds with correct client cert in encrypted DER format: no stderr [11:26:32.299](0.038s) ok 155 - certificate authorization succeeds with correct client cert and sslcertmode=require [11:26:32.299](0.000s) ok 156 - certificate authorization succeeds with correct client cert and sslcertmode=require: no stderr [11:26:32.335](0.036s) ok 157 - certificate authorization succeeds with correct client cert and sslcertmode=allow [11:26:32.336](0.000s) ok 158 - certificate authorization succeeds with correct client cert and sslcertmode=allow: no stderr [11:26:32.369](0.034s) ok 159 - certificate authorization fails with correct client cert and sslcertmode=disable [11:26:32.369](0.000s) ok 160 - certificate authorization fails with correct client cert and sslcertmode=disable: matches [11:26:32.415](0.046s) ok 161 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format [11:26:32.415](0.000s) ok 162 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format: matches [11:26:32.477](0.062s) ok 163 - certificate authorization succeeds with DN mapping [11:26:32.477](0.000s) ok 164 - certificate authorization succeeds with DN mapping: no stderr [11:26:32.478](0.000s) ok 165 - certificate authorization succeeds with DN mapping: log matches [11:26:32.549](0.072s) ok 166 - certificate authorization succeeds with DN regex mapping [11:26:32.549](0.000s) ok 167 - certificate authorization succeeds with DN regex mapping: no stderr [11:26:32.621](0.071s) ok 168 - certificate authorization succeeds with CN mapping [11:26:32.621](0.000s) ok 169 - certificate authorization succeeds with CN mapping: no stderr [11:26:32.621](0.000s) ok 170 - certificate authorization succeeds with CN mapping: log matches [11:26:32.622](0.000s) not ok 171 # TODO & SKIP Need Pty support [11:26:32.622](0.000s) not ok 172 # TODO & SKIP Need Pty support [11:26:32.622](0.000s) not ok 173 # TODO & SKIP Need Pty support [11:26:32.622](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_DogP/client.key -c SELECT * FROM pg_stat_ssl WHERE pid = pg_backend_pid() [11:26:32.692](0.070s) ok 175 - pg_stat_ssl with client certificate: exit code 0 [11:26:32.693](0.000s) ok 176 - pg_stat_ssl with client certificate: no stderr [11:26:32.693](0.000s) ok 177 - pg_stat_ssl with client certificate: matches [11:26:32.738](0.045s) ok 178 - certificate authorization fails because of file permissions [11:26:32.738](0.000s) ok 179 - certificate authorization fails because of file permissions: matches [11:26:32.772](0.034s) ok 180 - certificate authorization fails with client cert belonging to another user [11:26:32.772](0.000s) ok 181 - certificate authorization fails with client cert belonging to another user: matches [11:26:32.820](0.048s) ok 182 - certificate authorization fails with revoked client cert [11:26:32.820](0.000s) ok 183 - certificate authorization fails with revoked client cert: matches [11:26:32.820](0.000s) ok 184 - certificate authorization fails with revoked client cert: log does not match [11:26:32.909](0.089s) ok 185 - auth_option clientcert=verify-full succeeds with matching username and Common Name [11:26:32.909](0.000s) ok 186 - auth_option clientcert=verify-full succeeds with matching username and Common Name: no stderr [11:26:32.910](0.000s) ok 187 - auth_option clientcert=verify-full succeeds with matching username and Common Name: log matches [11:26:32.967](0.058s) ok 188 - auth_option clientcert=verify-full fails with mismatching username and Common Name [11:26:32.968](0.000s) ok 189 - auth_option clientcert=verify-full fails with mismatching username and Common Name: matches [11:26:32.968](0.000s) ok 190 - auth_option clientcert=verify-full fails with mismatching username and Common Name: log does not match [11:26:33.024](0.056s) ok 191 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name [11:26:33.024](0.000s) ok 192 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name: no stderr [11:26:33.025](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 30004 [11:26:33.353](0.329s) ok 194 - intermediate client certificate is provided by client [11:26:33.353](0.000s) ok 195 - intermediate client certificate is provided by client: no stderr [11:26:33.407](0.054s) ok 196 - intermediate client certificate is missing [11:26:33.408](0.000s) ok 197 - intermediate client certificate is missing: matches [11:26:33.461](0.053s) ok 198 - logged client certificate Subjects are truncated if they're too long [11:26:33.461](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 30078 [11:26:33.750](0.289s) ok 200 - intermediate client certificate is untrusted [11:26:33.750](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 30113 [11:26:34.009](0.259s) ok 202 - certificate authorization fails with revoked client cert with server-side CRL directory [11:26:34.010](0.000s) ok 203 - certificate authorization fails with revoked client cert with server-side CRL directory: matches [11:26:34.060](0.051s) ok 204 - certificate authorization fails with revoked UTF-8 client cert with server-side CRL directory [11:26:34.060](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 30136 [11:26:34.339](0.278s) not ok 206 - connect with valid stapled ocsp response when sslocspstapling=1 [11:26:34.339](0.000s) [11:26:34.339](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1' # at t/001_ssltests.pl line 923. [11:26:34.339](0.000s) # got: '2' # expected: '0' [11:26:34.340](0.000s) not ok 207 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [11:26:34.340](0.000s) [11:26:34.340](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1: no stderr' # at t/001_ssltests.pl line 923. [11:26:34.340](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 56491 failed: SSL error: ocsp callback failure' # expected: '' [11:26:34.377](0.037s) ok 208 - connect without requesting ocsp response when sslocspstapling=0 [11:26:34.377](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 30201 [11:26:34.623](0.245s) ok 210 - failed with a revoked ocsp response when sslocspstapling=1 [11:26:34.688](0.066s) ok 211 - connect without requesting ocsp response when sslocspstapling=0 [11:26:34.688](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 30263 [11:26:34.949](0.260s) ok 213 - failed with a revoked ocsp response when sslocspstapling=1 [11:26:35.053](0.104s) ok 214 - connect without requesting ocsp response when sslocspstapling=0 [11:26:35.053](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 30339 [11:26:35.308](0.255s) ok 216 - failed with an expired ocsp response when sslocspstapling=1 [11:26:35.394](0.087s) ok 217 - connect without requesting ocsp response when sslocspstapling=0 [11:26:35.395](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 30421 [11:26:35.636](0.242s) not ok 219 - connect with valid stapled ocsp response when sslocspstapling=1 [11:26:35.636](0.000s) [11:26:35.636](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1' # at t/001_ssltests.pl line 1001. [11:26:35.637](0.000s) # got: '2' # expected: '0' [11:26:35.637](0.000s) not ok 220 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [11:26:35.637](0.000s) [11:26:35.637](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1: no stderr' # at t/001_ssltests.pl line 1001. [11:26:35.637](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 56491 failed: SSL error: ocsp callback failure' # expected: '' [11:26:35.693](0.056s) ok 221 - connect without requesting ocsp response when sslocspstapling=0 [11:26:35.693](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 30486 [11:26:35.954](0.261s) ok 223 - failed with a revoked ocsp response when sslocspstapling=1 [11:26:36.033](0.080s) ok 224 - connect without requesting ocsp response when sslocspstapling=0 [11:26:36.033](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 30549 [11:26:36.316](0.282s) ok 226 - failed with a revoked ocsp response when sslocspstapling=1 [11:26:36.376](0.061s) ok 227 - connect without requesting ocsp response when sslocspstapling=0 [11:26:36.377](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 30594 [11:26:36.655](0.279s) ok 229 - failed with an expired ocsp response when sslocspstapling=1 [11:26:36.740](0.085s) ok 230 - connect without requesting ocsp response when sslocspstapling=0 [11:26:36.740](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 30655 [11:26:37.094](0.354s) ok 232 - failed with an expired ocsp response when sslocspstapling=1 [11:26:37.143](0.049s) ok 233 - connect without requesting ocsp response when sslocspstapling=0 [11:26:37.143](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" [11:26:37.359](0.216s) Bail out! pg_ctl restart failed # No postmaster PID for node "primary"