[23:53:01.315](0.048s) # setting up data directory # Checking port 56052 # Found port 56052 Name: primary Data directory: /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata Backup directory: /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/backup Archive directory: /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/archives Connection string: port=56052 host=/var/folders/xc/tpssff9959345bnqq4c6tlww0000gn/T/v2ApMN8hgX Log file: /Users/admin/pgsql/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log [23:53:01.324](0.008s) # initializing database system by copying initdb template # Running: cp -RPp /Users/admin/pgsql/build/tmp_install/initdb-template /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata # Running: /Users/admin/pgsql/build/src/test/regress/pg_regress --config-auth /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata ### Starting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 44637 [23:53:02.226](0.902s) ok 1 - ssl_library parameter ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45183 [23:53:07.634](5.408s) # testing password-protected keys ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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: /Users/admin/pgsql/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log # No postmaster PID for node "primary" [23:53:07.858](0.224s) ok 2 - restart fails with password-protected key file with wrong password ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log restart pg_ctl: PID file "/Users/admin/pgsql/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 45234 [23:53:08.081](0.223s) ok 3 - restart succeeds with password-protected key file ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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: /Users/admin/pgsql/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log # No postmaster PID for node "primary" [23:53:08.294](0.212s) ok 4 - restart fails with incorrect SSL protocol bounds ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log restart pg_ctl: PID file "/Users/admin/pgsql/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 45291 [23:53:08.407](0.114s) ok 5 - restart succeeds with correct SSL protocol bounds [23:53:08.407](0.000s) # running client tests ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45338 [23:53:08.650](0.242s) ok 6 - server doesn't accept non-SSL connections [23:53:08.650](0.000s) ok 7 - server doesn't accept non-SSL connections: matches [23:53:08.675](0.025s) ok 8 - connect without server root cert sslmode=require [23:53:08.675](0.000s) ok 9 - connect without server root cert sslmode=require: no stderr [23:53:08.691](0.016s) ok 10 - connect without server root cert sslmode=verify-ca [23:53:08.691](0.000s) ok 11 - connect without server root cert sslmode=verify-ca: matches [23:53:08.706](0.015s) ok 12 - connect without server root cert sslmode=verify-full [23:53:08.706](0.000s) ok 13 - connect without server root cert sslmode=verify-full: matches [23:53:08.723](0.017s) ok 14 - connect with wrong server root cert sslmode=require [23:53:08.724](0.000s) ok 15 - connect with wrong server root cert sslmode=require: matches [23:53:08.740](0.017s) ok 16 - connect with wrong server root cert sslmode=verify-ca [23:53:08.740](0.000s) ok 17 - connect with wrong server root cert sslmode=verify-ca: matches [23:53:08.759](0.018s) ok 18 - connect with wrong server root cert sslmode=verify-full [23:53:08.759](0.000s) ok 19 - connect with wrong server root cert sslmode=verify-full: matches [23:53:08.777](0.018s) ok 20 - connect with server CA cert, without root CA [23:53:08.777](0.000s) ok 21 - connect with server CA cert, without root CA: matches [23:53:08.797](0.020s) ok 22 - connect with correct server CA cert file sslmode=require [23:53:08.797](0.000s) ok 23 - connect with correct server CA cert file sslmode=require: no stderr [23:53:08.819](0.022s) ok 24 - connect with correct server CA cert file sslmode=verify-ca [23:53:08.819](0.000s) ok 25 - connect with correct server CA cert file sslmode=verify-ca: no stderr [23:53:08.848](0.029s) ok 26 - connect with correct server CA cert file sslmode=verify-full [23:53:08.849](0.000s) ok 27 - connect with correct server CA cert file sslmode=verify-full: no stderr [23:53:08.877](0.028s) ok 28 - cert root file that contains two certificates, order 1 [23:53:08.877](0.000s) ok 29 - cert root file that contains two certificates, order 1: no stderr [23:53:08.901](0.025s) ok 30 - cert root file that contains two certificates, order 2 [23:53:08.902](0.000s) ok 31 - cert root file that contains two certificates, order 2: no stderr [23:53:08.923](0.022s) ok 32 - connect with sslcertmode=disable [23:53:08.923](0.000s) ok 33 - connect with sslcertmode=disable: no stderr [23:53:08.942](0.019s) ok 34 - connect with sslcertmode=allow [23:53:08.942](0.000s) ok 35 - connect with sslcertmode=allow: no stderr [23:53:08.959](0.017s) ok 36 - connect with sslcertmode=require fails without a client certificate [23:53:08.959](0.000s) ok 37 - connect with sslcertmode=require fails without a client certificate: matches [23:53:08.977](0.018s) ok 38 - sslcrl option with invalid file name [23:53:08.977](0.000s) ok 39 - sslcrl option with invalid file name: no stderr [23:53:08.996](0.019s) ok 40 - CRL belonging to a different CA [23:53:08.996](0.000s) ok 41 - CRL belonging to a different CA: matches [23:53:09.014](0.018s) ok 42 - directory CRL belonging to a different CA [23:53:09.014](0.000s) ok 43 - directory CRL belonging to a different CA: matches [23:53:09.031](0.018s) ok 44 - CRL with a non-revoked cert [23:53:09.031](0.000s) ok 45 - CRL with a non-revoked cert: no stderr [23:53:09.049](0.018s) ok 46 - directory CRL with a non-revoked cert [23:53:09.049](0.000s) ok 47 - directory CRL with a non-revoked cert: no stderr [23:53:09.067](0.017s) ok 48 - mismatch between host name and server certificate sslmode=require [23:53:09.067](0.000s) ok 49 - mismatch between host name and server certificate sslmode=require: no stderr [23:53:09.084](0.018s) ok 50 - mismatch between host name and server certificate sslmode=verify-ca [23:53:09.084](0.000s) ok 51 - mismatch between host name and server certificate sslmode=verify-ca: no stderr [23:53:09.101](0.017s) ok 52 - mismatch between host name and server certificate sslmode=verify-full [23:53:09.101](0.000s) ok 53 - mismatch between host name and server certificate sslmode=verify-full: matches ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45452 [23:53:09.353](0.252s) ok 54 - IP address in the Common Name [23:53:09.353](0.000s) ok 55 - IP address in the Common Name: no stderr [23:53:09.373](0.019s) ok 56 - mismatch between host name and server certificate IP address [23:53:09.373](0.000s) ok 57 - mismatch between host name and server certificate IP address: matches ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45475 [23:53:09.616](0.243s) ok 58 - IP address in a dNSName [23:53:09.616](0.000s) ok 59 - IP address in a dNSName: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45494 [23:53:09.863](0.247s) ok 60 - host name matching with X.509 Subject Alternative Names 1 [23:53:09.863](0.000s) ok 61 - host name matching with X.509 Subject Alternative Names 1: no stderr [23:53:09.885](0.023s) ok 62 - host name matching with X.509 Subject Alternative Names 2 [23:53:09.886](0.000s) ok 63 - host name matching with X.509 Subject Alternative Names 2: no stderr [23:53:09.904](0.018s) ok 64 - host name matching with X.509 Subject Alternative Names wildcard [23:53:09.904](0.000s) ok 65 - host name matching with X.509 Subject Alternative Names wildcard: no stderr [23:53:09.921](0.017s) ok 66 - host name not matching with X.509 Subject Alternative Names [23:53:09.921](0.000s) ok 67 - host name not matching with X.509 Subject Alternative Names: matches [23:53:09.937](0.016s) ok 68 - host name not matching with X.509 Subject Alternative Names wildcard [23:53:09.937](0.000s) ok 69 - host name not matching with X.509 Subject Alternative Names wildcard: matches ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45513 [23:53:10.192](0.255s) ok 70 - host name matching with a single X.509 Subject Alternative Name [23:53:10.193](0.000s) ok 71 - host name matching with a single X.509 Subject Alternative Name: no stderr [23:53:10.214](0.022s) ok 72 - host name not matching with a single X.509 Subject Alternative Name [23:53:10.214](0.000s) ok 73 - host name not matching with a single X.509 Subject Alternative Name: matches [23:53:10.231](0.017s) ok 74 - host name not matching with a single X.509 Subject Alternative Name wildcard [23:53:10.231](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 /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45528 [23:53:10.491](0.260s) ok 76 - host matching an IPv4 address (Subject Alternative Name 1) [23:53:10.491](0.000s) ok 77 - host matching an IPv4 address (Subject Alternative Name 1): no stderr [23:53:10.511](0.020s) ok 78 - host matching an IPv4 address in alternate form (Subject Alternative Name 1) [23:53:10.512](0.000s) ok 79 - host matching an IPv4 address in alternate form (Subject Alternative Name 1): no stderr [23:53:10.530](0.018s) ok 80 - host not matching an IPv4 address (Subject Alternative Name 1) [23:53:10.530](0.000s) ok 81 - host not matching an IPv4 address (Subject Alternative Name 1): matches [23:53:10.549](0.019s) ok 82 - host matching an IPv6 address (Subject Alternative Name 2) [23:53:10.549](0.000s) ok 83 - host matching an IPv6 address (Subject Alternative Name 2): no stderr [23:53:10.568](0.019s) ok 84 - host matching an IPv6 address in alternate form (Subject Alternative Name 2) [23:53:10.568](0.000s) ok 85 - host matching an IPv6 address in alternate form (Subject Alternative Name 2): no stderr [23:53:10.586](0.019s) ok 86 - host matching an IPv6 address in mixed form (Subject Alternative Name 2) [23:53:10.586](0.000s) ok 87 - host matching an IPv6 address in mixed form (Subject Alternative Name 2): no stderr [23:53:10.605](0.018s) ok 88 - host not matching an IPv6 address (Subject Alternative Name 2) [23:53:10.605](0.000s) ok 89 - host not matching an IPv6 address (Subject Alternative Name 2): matches [23:53:10.632](0.027s) ok 90 - IPv6 host with CIDR mask does not match [23:53:10.632](0.000s) ok 91 - IPv6 host with CIDR mask does not match: matches ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45552 [23:53:10.895](0.263s) ok 92 - certificate with both a CN and SANs 1 [23:53:10.895](0.000s) ok 93 - certificate with both a CN and SANs 1: no stderr [23:53:10.915](0.020s) ok 94 - certificate with both a CN and SANs 2 [23:53:10.915](0.000s) ok 95 - certificate with both a CN and SANs 2: no stderr [23:53:10.932](0.017s) ok 96 - certificate with both a CN and SANs ignores CN [23:53:10.932](0.000s) ok 97 - certificate with both a CN and SANs ignores CN: matches ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45567 [23:53:11.202](0.270s) ok 98 - certificate with both a CN and IP SANs matches CN [23:53:11.202](0.000s) ok 99 - certificate with both a CN and IP SANs matches CN: no stderr [23:53:11.223](0.020s) ok 100 - certificate with both a CN and IP SANs matches SAN 1 [23:53:11.223](0.000s) ok 101 - certificate with both a CN and IP SANs matches SAN 1: no stderr [23:53:11.241](0.018s) ok 102 - certificate with both a CN and IP SANs matches SAN 2 [23:53:11.241](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 /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45581 [23:53:11.494](0.253s) ok 104 - certificate with both an IP CN and IP SANs 1 [23:53:11.494](0.000s) ok 105 - certificate with both an IP CN and IP SANs 1: no stderr [23:53:11.512](0.018s) ok 106 - certificate with both an IP CN and IP SANs 2 [23:53:11.512](0.000s) ok 107 - certificate with both an IP CN and IP SANs 2: no stderr [23:53:11.528](0.016s) ok 108 - certificate with both an IP CN and IP SANs ignores CN [23:53:11.528](0.000s) ok 109 - certificate with both an IP CN and IP SANs ignores CN: matches ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45595 [23:53:11.765](0.237s) ok 110 - certificate with both an IP CN and DNS SANs matches CN [23:53:11.765](0.000s) ok 111 - certificate with both an IP CN and DNS SANs matches CN: no stderr [23:53:11.784](0.019s) ok 112 - certificate with both an IP CN and DNS SANs matches SAN 1 [23:53:11.784](0.000s) ok 113 - certificate with both an IP CN and DNS SANs matches SAN 1: no stderr [23:53:11.802](0.018s) ok 114 - certificate with both an IP CN and DNS SANs matches SAN 2 [23:53:11.802](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 /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45609 [23:53:12.063](0.261s) ok 116 - server certificate without CN or SANs sslmode=verify-ca [23:53:12.063](0.000s) ok 117 - server certificate without CN or SANs sslmode=verify-ca: no stderr [23:53:12.081](0.018s) ok 118 - server certificate without CN or SANs sslmode=verify-full [23:53:12.081](0.000s) ok 119 - server certificate without CN or SANs sslmode=verify-full: matches ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45621 [23:53:12.316](0.235s) ok 120 - sslrootcert=system does not connect with private CA [23:53:12.316](0.000s) ok 121 - sslrootcert=system does not connect with private CA: matches [23:53:12.325](0.009s) ok 122 - sslrootcert=system only accepts sslmode=verify-full [23:53:12.325](0.000s) ok 123 - sslrootcert=system only accepts sslmode=verify-full: matches [23:53:12.349](0.024s) ok 124 - sslrootcert=system connects with overridden SSL_CERT_FILE [23:53:12.349](0.000s) ok 125 - sslrootcert=system connects with overridden SSL_CERT_FILE: no stderr [23:53:12.368](0.019s) ok 126 - sslrootcert=system defaults to sslmode=verify-full [23:53:12.368](0.000s) ok 127 - sslrootcert=system defaults to sslmode=verify-full: matches ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45636 [23:53:12.624](0.256s) ok 128 - connects without client-side CRL [23:53:12.624](0.000s) ok 129 - connects without client-side CRL: no stderr [23:53:12.645](0.021s) ok 130 - does not connect with client-side CRL file [23:53:12.645](0.000s) ok 131 - does not connect with client-side CRL file: matches [23:53:12.662](0.017s) ok 132 - does not connect with client-side CRL directory [23:53:12.662](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() [23:53:12.680](0.018s) ok 134 - pg_stat_ssl view without client certificate: exit code 0 [23:53:12.680](0.000s) ok 135 - pg_stat_ssl view without client certificate: no stderr [23:53:12.680](0.000s) ok 136 - pg_stat_ssl view without client certificate: matches [23:53:12.698](0.018s) ok 137 - connection success with correct range of TLS protocol versions [23:53:12.698](0.000s) ok 138 - connection success with correct range of TLS protocol versions: no stderr [23:53:12.706](0.008s) ok 139 - connection failure with incorrect range of TLS protocol versions [23:53:12.706](0.000s) ok 140 - connection failure with incorrect range of TLS protocol versions: matches [23:53:12.713](0.008s) ok 141 - connection failure with an incorrect SSL protocol minimum bound [23:53:12.713](0.000s) ok 142 - connection failure with an incorrect SSL protocol minimum bound: matches [23:53:12.721](0.007s) ok 143 - connection failure with an incorrect SSL protocol maximum bound [23:53:12.721](0.000s) ok 144 - connection failure with an incorrect SSL protocol maximum bound: matches [23:53:12.721](0.000s) # running server tests [23:53:12.738](0.018s) ok 145 - certificate authorization fails without client cert [23:53:12.739](0.000s) ok 146 - certificate authorization fails without client cert: matches [23:53:12.760](0.021s) ok 147 - certificate authorization succeeds with correct client cert in PEM format [23:53:12.760](0.000s) ok 148 - certificate authorization succeeds with correct client cert in PEM format: no stderr [23:53:12.780](0.020s) ok 149 - certificate authorization succeeds with correct client cert in DER format [23:53:12.780](0.000s) ok 150 - certificate authorization succeeds with correct client cert in DER format: no stderr [23:53:12.801](0.021s) ok 151 - certificate authorization succeeds with correct client cert in encrypted PEM format [23:53:12.806](0.005s) ok 152 - certificate authorization succeeds with correct client cert in encrypted PEM format: no stderr [23:53:12.829](0.023s) ok 153 - certificate authorization succeeds with correct client cert in encrypted DER format [23:53:12.829](0.000s) ok 154 - certificate authorization succeeds with correct client cert in encrypted DER format: no stderr [23:53:12.851](0.022s) ok 155 - certificate authorization succeeds with correct client cert and sslcertmode=require [23:53:12.851](0.000s) ok 156 - certificate authorization succeeds with correct client cert and sslcertmode=require: no stderr [23:53:12.872](0.022s) ok 157 - certificate authorization succeeds with correct client cert and sslcertmode=allow [23:53:12.872](0.000s) ok 158 - certificate authorization succeeds with correct client cert and sslcertmode=allow: no stderr [23:53:12.894](0.022s) ok 159 - certificate authorization fails with correct client cert and sslcertmode=disable [23:53:12.894](0.000s) ok 160 - certificate authorization fails with correct client cert and sslcertmode=disable: matches [23:53:12.917](0.022s) ok 161 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format [23:53:12.917](0.000s) ok 162 - certificate authorization fails with correct client cert and wrong password in encrypted PEM format: matches [23:53:12.947](0.031s) ok 163 - certificate authorization succeeds with DN mapping [23:53:12.948](0.000s) ok 164 - certificate authorization succeeds with DN mapping: no stderr [23:53:12.948](0.000s) ok 165 - certificate authorization succeeds with DN mapping: log matches [23:53:12.971](0.023s) ok 166 - certificate authorization succeeds with DN regex mapping [23:53:12.971](0.000s) ok 167 - certificate authorization succeeds with DN regex mapping: no stderr [23:53:12.995](0.024s) ok 168 - certificate authorization succeeds with CN mapping [23:53:12.995](0.000s) ok 169 - certificate authorization succeeds with CN mapping: no stderr [23:53:12.995](0.000s) ok 170 - certificate authorization succeeds with CN mapping: log matches [23:53:12.996](0.000s) not ok 171 # TODO & SKIP Need Pty support [23:53:12.996](0.000s) not ok 172 # TODO & SKIP Need Pty support [23:53:12.996](0.000s) not ok 173 # TODO & SKIP Need Pty support [23:53:12.996](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=/Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/tmp_test_19zH/client.key -c SELECT * FROM pg_stat_ssl WHERE pid = pg_backend_pid() [23:53:13.094](0.098s) ok 175 - pg_stat_ssl with client certificate: exit code 0 [23:53:13.094](0.000s) ok 176 - pg_stat_ssl with client certificate: no stderr [23:53:13.094](0.000s) ok 177 - pg_stat_ssl with client certificate: matches [23:53:13.109](0.015s) ok 178 - certificate authorization fails because of file permissions [23:53:13.109](0.000s) ok 179 - certificate authorization fails because of file permissions: matches [23:53:13.127](0.018s) ok 180 - certificate authorization fails with client cert belonging to another user [23:53:13.127](0.000s) ok 181 - certificate authorization fails with client cert belonging to another user: matches [23:53:13.144](0.017s) ok 182 - certificate authorization fails with revoked client cert [23:53:13.144](0.000s) ok 183 - certificate authorization fails with revoked client cert: matches [23:53:13.145](0.000s) ok 184 - certificate authorization fails with revoked client cert: log does not match [23:53:13.165](0.020s) ok 185 - auth_option clientcert=verify-full succeeds with matching username and Common Name [23:53:13.165](0.000s) ok 186 - auth_option clientcert=verify-full succeeds with matching username and Common Name: no stderr [23:53:13.165](0.000s) ok 187 - auth_option clientcert=verify-full succeeds with matching username and Common Name: log matches [23:53:13.183](0.018s) ok 188 - auth_option clientcert=verify-full fails with mismatching username and Common Name [23:53:13.183](0.000s) ok 189 - auth_option clientcert=verify-full fails with mismatching username and Common Name: matches [23:53:13.183](0.000s) ok 190 - auth_option clientcert=verify-full fails with mismatching username and Common Name: log does not match [23:53:13.202](0.019s) ok 191 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name [23:53:13.202](0.000s) ok 192 - auth_option clientcert=verify-ca succeeds with mismatching username and Common Name: no stderr [23:53:13.202](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 /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45696 [23:53:13.457](0.255s) ok 194 - intermediate client certificate is provided by client [23:53:13.457](0.000s) ok 195 - intermediate client certificate is provided by client: no stderr [23:53:13.476](0.018s) ok 196 - intermediate client certificate is missing [23:53:13.476](0.000s) ok 197 - intermediate client certificate is missing: matches [23:53:13.495](0.019s) ok 198 - logged client certificate Subjects are truncated if they're too long [23:53:13.495](0.000s) ok 199 - logged client certificate Subjects are truncated if they're too long: matches ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45710 [23:53:13.750](0.255s) ok 200 - intermediate client certificate is untrusted [23:53:13.750](0.000s) ok 201 - intermediate client certificate is untrusted: matches ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45720 [23:53:13.998](0.248s) ok 202 - certificate authorization fails with revoked client cert with server-side CRL directory [23:53:13.998](0.000s) ok 203 - certificate authorization fails with revoked client cert with server-side CRL directory: matches [23:53:14.022](0.024s) ok 204 - certificate authorization fails with revoked UTF-8 client cert with server-side CRL directory [23:53:14.023](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 /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45732 [23:53:14.265](0.243s) not ok 206 - connect with valid stapled ocsp response when sslocspstapling=1 [23:53:14.265](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1' # at /Users/admin/pgsql/src/test/ssl/t/001_ssltests.pl line 923. [23:53:14.266](0.000s) # got: '2' # expected: '0' [23:53:14.266](0.000s) not ok 207 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [23:53:14.266](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1: no stderr' # at /Users/admin/pgsql/src/test/ssl/t/001_ssltests.pl line 923. [23:53:14.266](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 56052 failed: server closed the connection unexpectedly # This probably means the server terminated abnormally # before or while processing the request. # SSL SYSCALL error: Connection reset by peer' # expected: '' [23:53:14.292](0.026s) ok 208 - connect without requesting ocsp response when sslocspstapling=0 [23:53:14.292](0.000s) ok 209 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45744 [23:53:14.548](0.256s) ok 210 - failed with a revoked ocsp response when sslocspstapling=1 [23:53:14.574](0.026s) ok 211 - connect without requesting ocsp response when sslocspstapling=0 [23:53:14.574](0.000s) ok 212 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45756 [23:53:14.805](0.231s) ok 213 - failed with a revoked ocsp response when sslocspstapling=1 [23:53:14.828](0.022s) ok 214 - connect without requesting ocsp response when sslocspstapling=0 [23:53:14.828](0.000s) ok 215 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45768 [23:53:15.072](0.245s) ok 216 - failed with an expired ocsp response when sslocspstapling=1 [23:53:15.096](0.024s) ok 217 - connect without requesting ocsp response when sslocspstapling=0 [23:53:15.096](0.000s) ok 218 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45780 [23:53:15.337](0.241s) not ok 219 - connect with valid stapled ocsp response when sslocspstapling=1 [23:53:15.337](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1' # at /Users/admin/pgsql/src/test/ssl/t/001_ssltests.pl line 1001. [23:53:15.337](0.000s) # got: '2' # expected: '0' [23:53:15.337](0.000s) not ok 220 - connect with valid stapled ocsp response when sslocspstapling=1: no stderr [23:53:15.338](0.000s) # Failed test 'connect with valid stapled ocsp response when sslocspstapling=1: no stderr' # at /Users/admin/pgsql/src/test/ssl/t/001_ssltests.pl line 1001. [23:53:15.338](0.000s) # got: 'psql: error: connection to server at "127.0.0.1", port 56052 failed: server closed the connection unexpectedly # This probably means the server terminated abnormally # before or while processing the request. # SSL SYSCALL error: Connection reset by peer' # expected: '' [23:53:15.357](0.019s) ok 221 - connect without requesting ocsp response when sslocspstapling=0 [23:53:15.357](0.000s) ok 222 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45793 [23:53:15.600](0.243s) ok 223 - failed with a revoked ocsp response when sslocspstapling=1 [23:53:15.678](0.077s) ok 224 - connect without requesting ocsp response when sslocspstapling=0 [23:53:15.678](0.000s) ok 225 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45805 [23:53:15.916](0.238s) ok 226 - failed with a revoked ocsp response when sslocspstapling=1 [23:53:15.938](0.022s) ok 227 - connect without requesting ocsp response when sslocspstapling=0 [23:53:15.938](0.000s) ok 228 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45817 [23:53:16.184](0.246s) ok 229 - failed with an expired ocsp response when sslocspstapling=1 [23:53:16.205](0.020s) ok 230 - connect without requesting ocsp response when sslocspstapling=0 [23:53:16.205](0.000s) ok 231 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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 45829 [23:53:16.449](0.244s) ok 232 - failed with an expired ocsp response when sslocspstapling=1 [23:53:16.472](0.023s) ok 233 - connect without requesting ocsp response when sslocspstapling=0 [23:53:16.472](0.000s) ok 234 - connect without requesting ocsp response when sslocspstapling=0: no stderr ### Restarting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/ssl/001_ssltests/data/t_001_ssltests_primary_data/pgdata -l /Users/admin/pgsql/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: /Users/admin/pgsql/build/testrun/ssl/001_ssltests/log/001_ssltests_primary.log # No postmaster PID for node "primary" [23:53:16.690](0.218s) Bail out! pg_ctl restart failed # No postmaster PID for node "primary"