Bug 1548401

Summary: modify X509_NAME comparison function to be case sensitive for CA name lists in SSL
Product: Red Hat Enterprise Linux 7 Reporter: Joe Orton <jorton>
Component: opensslAssignee: Tomas Mraz <tmraz>
Status: CLOSED ERRATA QA Contact: Hubert Kario <hkario>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: cww, hkario, szidek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openssl-1.0.2k-13.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 11:24:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1477664, 1493181, 1573736    

Description Joe Orton 2018-02-23 12:21:40 UTC
Description of problem:
Per bug 1493181, the OpenSSL internal X509_NAME comparison function for SSL_* is case insensitive; this prevents adding CA names which differ in case.  An example of public deployment of such CA names is known.

Version-Release number of selected component (if applicable):
openssl-1.0.2k-8

How reproducible:
always

Steps to Reproduce:
1. create cert bundle with cert subject names which differ only in case
2. call SSL_load_client_CA_file() on that bundle 

Actual results:
certs differing in case in subject are treated as duplicates and one is ignored

Expected results:
both certs differing in case in subject name added to X509_NAME stack

Additional info:

Comment 11 errata-xmlrpc 2018-10-30 11:24:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:3221