Bug 200880

Summary: openssl-0.9.7a fails to verify a certificate against a CA
Product: Red Hat Enterprise Linux 3 Reporter: Jose Plans <jplans>
Component: opensslAssignee: Tomas Mraz <tmraz>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: high    
Version: 3.0CC: tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0447 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-11 18:41:53 UTC Type: ---
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: 212183    
Attachments:
Description Flags
test_ko : failure using RHEL3's openssl.
none
test_ok : success using RHEL3's openssl.
none
ca-bundle.crt
none
projekte.ibo.de site certificate none

Description Jose Plans 2006-08-01 08:35:26 UTC
Description of problem:
Using the same valid CA set (attached ca-bundle.crt) and the latest version of
openssl on RHEL3, the certificate is checked as not valid.

Version-Release number of selected component (if applicable):
$ openssl version
OpenSSL 0.9.7a Feb 19 2003

How reproducible:
Always.

Steps to Reproduce:
1.openssl s_client -connect https_server:443 -CAfile ca-bundle.crt
  
Actual results:

depth=1 /C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust
External CA Root
verify error:num=24:invalid CA certificate
verify return:0
CONNECTED(00000003)

(see attachement for more details - test_ko.txt)

Expected results:
depth=2 /C=US/ST=UT/L=Salt Lake City/O=The USERTRUST
Network/OU=http://www.usertrust.com/CN=UTN-USERFirst-Hardware
verify return:1
depth=1 /C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust
External CA Root
verify return:1
depth=0 /C=DE/postalCode=35435/ST=Hessen/L=Wettenberg/streetAddress=Im Westpark
8/O=ibo Software/OU=Hosted by Secure-Netz/OU=Hosted by
Secure-Netz/OU=InstantSSL/CN=projekte.ibo.de
verify return:1
CONNECTED(00000003)

(see attachement for more details - test_ok.txt)

Additional info:
The issue seems to be in the x509 validation code. However copying
"crypto/x509/*" , "crypto/evp/evp.h" and "crypto/x509v3/v3_purp.c" from version
0.9.7f to version 0.9.7e fixed the problem.

Comment 1 Jose Plans 2006-08-01 08:35:27 UTC
Created attachment 133378 [details]
test_ko : failure using RHEL3's openssl.

Comment 2 Jose Plans 2006-08-01 08:39:06 UTC
Created attachment 133380 [details]
test_ok : success using RHEL3's openssl.

Comment 5 Tomas Mraz 2006-08-01 08:56:00 UTC
Could you please attach a certificate signed by the 'AddTrust
External CA Root' certificate?


Comment 6 Marco Ceci 2006-08-01 18:34:34 UTC
Created attachment 133427 [details]
projekte.ibo.de site certificate

Comment 17 Tomas Mraz 2007-03-19 15:30:04 UTC
Fixed in openssl-0.9.7a-33.23

Comment 21 Red Hat Bugzilla 2007-06-11 18:41:53 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0447.html