source: mod_gnutls/test/server.template.in @ 10d9053

asynciodebian/masterdebian/stretch-backportsmainproxy-ticketupstream
Last change on this file since 10d9053 was 10d9053, checked in by Thomas Klute <thomas2.klute@…>, 6 years ago

Test suite, gen_ocsp_index.c: Handle serial as fixed order byte array

The previous approach assumed that the serial fits within a long long
unsigned type, because the test suite controls the serial. However,
this breaks on big endian architectures because the order in the
certificate is fixed and returned by gnutls_x509_crt_get_serial in
that way.

The fix is to print the serial byte for byte. Additionally OpenSSL
apparently requires upper case characters in the DB hex encoded
serial, which didn't show up previously due to the small serials. Use
a larger one for the server certificate to detect similar problems in
the future.

Cat the OCSP database into the test log for easier debugging on build
systems without direct file system access (e.g. Debian buildd).

  • Property mode set to 100644
File size: 152 bytes
Line 
1serial=587198681
2cn=__HOSTNAME__
3tls_www_server
4signing_key
5encryption_key
6dns_name="__HOSTNAME__"
7### ocsp_uri=http://__HOSTNAME__:__OCSP_PORT__/ocsp/
Note: See TracBrowser for help on using the repository browser.