[mod_gnutls-devel] test-36_OCSP_server_nonce failing in 0.11.0 (Was: New release: mod_gnutls 0.11.0)

pgajdos pgajdos at suse.cz
Mon Jun 29 09:56:56 CEST 2020


Hi,

On Sat, Jun 27, 2020 at 09:35:20PM +0200, Fiona Klute wrote:
> I have just uploaded a new source archive and matching signature to
> https://mod.gnutls.org/downloads/ as well as the signed
> mod_gnutls/0.11.0 tag to the git repositories [1, 2].

thanks for the new release.

> - Change default for GnuTLSOCSPCheckNonce to "off", and send OCSP nonces
> only if it has been enabled. The reason for this change is that in
> practice most public CAs do not support OCSP nonces, which is permitted
> by both RFC 6960 and the CA/Browser Forum baseline requirements (as of
> version 1.6.9). In this situation enforcing correct nonces by default
> makes the automatic OCSP stapling support mostly useless.

test-36_OCSP_server_nonce test is failing for me, the log is
attached.

Petr

-- 
Have a lot of fun!
-------------- next part --------------
Connecting to OCSP server: localhost...
Could not connect to 127.0.0.1:9936: Connection refused
Resolving 'localhost:9936'...
Connecting to '127.0.0.1:9936'...
Connecting to OCSP server: localhost...

Assuming response's signer = issuer (use --load-signer to override).
Resolving 'localhost:9936'...
Connecting to '127.0.0.1:9936'...
OCSP Response Information:
	Response Status: Successful
	Response Type: Basic OCSP Response
	Version: 1
	Responder ID: CN=Testing Authority OCSP Responder
	Produced At: Mon Jun 29 06:43:00 UTC 2020
	Responses:
		Certificate ID:
			Hash Algorithm: SHA1
			Issuer Name Hash: bac68790352ceb4c4de1534445348f8b4b5309b3
			Issuer Key Hash: 1bc5b230c6819ca393601fc32d10b8b2752e7bfa
			Serial Number: 22fff0d9
		Certificate Status: good
		This Update: Mon Jun 29 06:43:00 UTC 2020
		Next Update: Mon Jun 29 06:48:00 UTC 2020
	Extensions:
		Nonce: bda76c72d988a3372faa2e298a0eb6cb527723f7cba203
	Signature Algorithm: RSA-SHA256

-----BEGIN OCSP RESPONSE-----
MIIG9AoBAKCCBu0wggbpBgkrBgEFBQcwAQEEggbaMIIG1jCB1aEtMCsxKTAnBgNV
BAMTIFR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u8HqL77iN+y+mYL91vc1JAowZl0RWRhmQwPF9efbXFlYNhZhyrRub8q
y7en/IjqPlzH7y6rH9IRpppo0qY7lmzyzjboP00ZUCeZdhugK6bQiYmWW0K3IlST
rCCscGch/csY8ZGcByWIG/kcaFtqL/bADFdLendVIQrvpAS7O5jp3pMgi09wIEzM
JEu/vTpbQtY=
-----END OCSP RESPONSE-----

Verifying OCSP Response: Success.

[Mon Jun 29 06:43:00.169518 2020] [gnutls:debug] [pid 7861:tid 139887182583808] gnutls_cache.c(367): mgs_cache_inst_config: Socache 'shmcb:cache/gnutls_cache_36_OCSP_server_nonce(65536)' created.
Found test 36_OCSP_server_nonce, test dir is /home/abuild/rpmbuild/BUILD/mod_gnutls-0.11.0/test/tests/36_OCSP_server_nonce
Starting: ['/usr/sbin/httpd', '-f', '/home/abuild/rpmbuild/BUILD/mod_gnutls-0.11.0/test/tests/36_OCSP_server_nonce/ocsp.conf', '-k', 'start', '-DFOREGROUND']
Starting: ['/usr/sbin/httpd', '-f', '/home/abuild/rpmbuild/BUILD/mod_gnutls-0.11.0/test/tests/36_OCSP_server_nonce/apache.conf', '-k', 'start', '-DFOREGROUND']
Running test connection 0: Check if the HTTPS server provides an OCSP status
Aquiring lock on test.lock...
Got lock on test.lock.
*** Fatal error: A TLS fatal alert has been received.
Processed 1 CA certificate(s).
Resolving 'localhost:9932'...
Connecting to '127.0.0.1:9932'...
*** Received alert [40]: Handshake failed
[Mon Jun 29 06:43:00.703870 2020] [gnutls:debug] [pid 7925:tid 139782033618944] gnutls_cache.c(367): mgs_cache_inst_config: Socache 'shmcb:cache/gnutls_cache_36_OCSP_server_nonce(65536)' created.
Unlocking test.lock...
Unlocked test.lock.
Stopping: ['/usr/sbin/httpd', '-f', '/home/abuild/rpmbuild/BUILD/mod_gnutls-0.11.0/test/tests/36_OCSP_server_nonce/apache.conf', '-k', 'stop']
Stopping: ['/usr/sbin/httpd', '-f', '/home/abuild/rpmbuild/BUILD/mod_gnutls-0.11.0/test/tests/36_OCSP_server_nonce/ocsp.conf', '-k', 'stop']
Traceback (most recent call last):
  File "./runtest.py", line 256, in <module>
    main(args)
  File "./runtest.py", line 204, in main
    run_test_conf(test_conf,
  File "/home/abuild/rpmbuild/BUILD/mod_gnutls-0.11.0/test/mgstest/tests.py", line 569, in run_test_conf
    test_conn.run(timeout=timeout, conn_log=conn_log,
  File "/home/abuild/rpmbuild/BUILD/mod_gnutls-0.11.0/test/mgstest/tests.py", line 182, in run
    act.run(conn, response_log)
  File "/home/abuild/rpmbuild/BUILD/mod_gnutls-0.11.0/test/mgstest/tests.py", line 242, in run
    raise err
  File "/home/abuild/rpmbuild/BUILD/mod_gnutls-0.11.0/test/mgstest/tests.py", line 233, in run
    resp = conn.getresponse()
  File "/usr/lib64/python3.8/http/client.py", line 1332, in getresponse
    response.begin()
  File "/usr/lib64/python3.8/http/client.py", line 303, in begin
    version, status, reason = self._read_status()
  File "/usr/lib64/python3.8/http/client.py", line 264, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib64/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer
FAIL test-36_OCSP_server_nonce.bash (exit status: 1)


More information about the mod_gnutls-devel mailing list