maintainer-feedback requested: [Bug 196431] security/ca_root_nss: Fix broken SSL verification for software (Python) using OpenSSL from ports

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 2 06:44:18 UTC 2015


Kubilay Kocak <koobs at FreeBSD.org> has reassigned Bugzilla Automation
<bugzilla at FreeBSD.org>'s request for maintainer-feedback to gecko at FreeBSD.org:
Bug 196431: security/ca_root_nss: Fix broken SSL verification for software
(Python) using OpenSSL from ports
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196431



--- Description ---
Since 2.7.9, Python verifies SSL certificates by default. Currently,
even with security/ca_root_nss installed, Python fails certificate
verification.

See: 

https://unix.stackexchange.com/questions/176294/what-should-i-do-about-python-2
-7-9-not-looking-for-ssl-certificates-in-the-righ

Python uses OpenSSL's standard SSL_CTX_load_verify_locations to load a
list of CA root certificates. 

Support was added to ca_root_nss for out-of-the-box certificate verification
for a number of base utilities in r372629 [1], but this did not include support
for software that uses OpenSSL's SSL_CTX_load_verify_locations function.

[1] https://svnweb.freebsd.org/changeset/ports/372629

OpenSSL defaults to the following paths and filenames for the
certificate and CAFile lookup:

Base:
  SSL_CERT_DIR=/etc/ssl/certs
  SSL_CERT_FILE/etc/ssl/cert.pem

Ports:
  SSL_CERT_DIR=/usr/local/openssl/certs
  SSL_CERT_FILE=/usr/local/openssl/cert.pem

This change installs a symlink which points to the root
certificate bundle in the location that OpenSSL from ports looks for them.

This allows any and all software utilising SSL_CTX_load_verify_locations
function to verify SSL certificates by default after installation of
this package.

Additionally, display a pkg-message to the user about the lack of
warranty associated with these certificates. 

Note: This is *NOT* related to solving for SSL certificate verification for
OpenSSL in Base, which is covered in bug 189811.


While I'm here:

- Use options helpers and OPTIONS_SUB

portlint: OK
porttest: OK
testport: OK

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer gecko at FreeBSD.org


More information about the freebsd-gecko mailing list