Open lucab opened 6 years ago
As a side note, this doesn't affect our golang binaries as the x509
modules hardcodes /etc/ssl/certs/ca-certificates.crt
.
Is there a corresponding bug report over at OpenSSL bugzilla?
@egberts no, this isn't an upstream bug, it is a minor slip in Container Linux ebuild.
Container Linux Version
Details
I was tracking down some TLS failures, and it seems that current openssl has an
SSL_CERT_FILE
default setting which points to a non-existing path. This means that trust chain validation only works with hashed certificates, and not withca-certificates.crt
.This can be observed by removing hashed certificates from
/etc/ssl/certs
and performing a validation check via openssl binary:Instead, the same scenario above works by manually setting the
SSL_CERT_FILE
env variable:Stracing the process, it seems to be looking for a non-existing
/etc/ssl/cert.pem
:Notes
The effects of this are relevant in two scenarios:
ca-certificates.crt
exists (no hashed certs)update-ca-certificates.service
, as the--skip-rehash
in there means custom added certs won't be used by openssl