Coder Social home page Coder Social logo

Odd global certificates about tls-observatory HOT 4 CLOSED

mozilla avatar mozilla commented on July 29, 2024
Odd global certificates

from tls-observatory.

Comments (4)

jvehent avatar jvehent commented on July 29, 2024

Most likely a bug in the chain building. The cert above is a valid verisign root.

$ openssl s_client -connect 72.21.215.232:443 -showcerts -CAfile /etc/ssl/certs/ca-bundle.crt 
CONNECTED(00000003)
depth=3 C = US, O = "VeriSign, Inc.", OU = Class 3 Public Primary Certification Authority
verify return:1
depth=2 C = US, O = "VeriSign, Inc.", OU = VeriSign Trust Network, OU = "(c) 2006 VeriSign, Inc. - For authorized use only", CN = VeriSign Class 3 Public Primary Certification Authority - G5
verify return:1
depth=1 C = US, O = "VeriSign, Inc.", OU = VeriSign Trust Network, OU = Terms of use at https://www.verisign.com/rpa (c)10, CN = VeriSign Class 3 Secure Server CA - G3
verify return:1
depth=0 C = US, ST = Washington, L = Seattle, O = Amazon.com Inc., CN = www.amazon.com
verify return:1

from tls-observatory.

0xdiba avatar 0xdiba commented on July 29, 2024

There is some kind of mixup in the Ubuntu truststore ( both 12.04 & 14.04 ).
Look at the chains I am getting when validating against amazon.com:

2015/01/18 13:18:55 --------- Received --------
2015/01/18 13:18:55 www.amazon.com
2015/01/18 13:18:55 VeriSign Class 3 Secure Server CA - G3
2015/01/18 13:18:55 VeriSign Class 3 Public Primary Certification Authority - G5
2015/01/18 13:18:55 -> Truststore : NSS
2015/01/18 13:18:55 Trust chain no:0
2015/01/18 13:18:55 Subject :www.amazon.com
2015/01/18 13:18:55 Issuer :VeriSign Class 3 Secure Server CA - G3
2015/01/18 13:18:56 record not found
2015/01/18 13:18:56 ISCA :false
2015/01/18 13:18:56 Appending domain :amazon.com
2015/01/18 13:18:57 Subject :VeriSign Class 3 Secure Server CA - G3
2015/01/18 13:18:57 Issuer :VeriSign Class 3 Public Primary Certification Authority - G5
2015/01/18 13:18:57 ISCA :true
2015/01/18 13:18:57 Subject :VeriSign Class 3 Public Primary Certification Authority - G5
2015/01/18 13:18:57 Issuer :VeriSign Class 3 Public Primary Certification Authority - G5
2015/01/18 13:18:57 ISCA :true
2015/01/18 13:18:57 -> Truststore : Ubuntu-14.04
2015/01/18 13:18:57 Trust chain no:0
2015/01/18 13:18:57 Subject :www.amazon.com
2015/01/18 13:18:57 Issuer :VeriSign Class 3 Secure Server CA - G3
2015/01/18 13:18:58 Subject :VeriSign Class 3 Secure Server CA - G3
2015/01/18 13:18:58 Issuer :VeriSign Class 3 Public Primary Certification Authority - G5
2015/01/18 13:18:58 Subject :VeriSign Class 3 Public Primary Certification Authority - G5
2015/01/18 13:18:58 Issuer :VeriSign Class 3 Public Primary Certification Authority - G5
2015/01/18 13:18:58 Trust chain no:1
2015/01/18 13:18:58 Subject :www.amazon.com
2015/01/18 13:18:58 Issuer :VeriSign Class 3 Secure Server CA - G3
2015/01/18 13:18:59 Subject :VeriSign Class 3 Secure Server CA - G3
2015/01/18 13:18:59 Issuer :VeriSign Class 3 Public Primary Certification Authority - G5
2015/01/18 13:18:59 Subject :VeriSign Class 3 Public Primary Certification Authority - G5
2015/01/18 13:18:59 Issuer :
2015/01/18 13:18:59 ISCA :true
2015/01/18 13:18:59 Subject :
2015/01/18 13:18:59 Issuer :
2015/01/18 13:18:59 ISCA :false
2015/01/18 13:18:59 Appending domain :amazon.com
2015/01/18 13:19:00 Trust chain no:2
2015/01/18 13:19:00 Subject :www.amazon.com
2015/01/18 13:19:00 Issuer :VeriSign Class 3 Secure Server CA - G3
2015/01/18 13:19:00 Subject :VeriSign Class 3 Secure Server CA - G3
2015/01/18 13:19:00 Issuer :VeriSign Class 3 Public Primary Certification Authority - G5
2015/01/18 13:19:00 Subject :VeriSign Class 3 Public Primary Certification Authority - G5
2015/01/18 13:19:00 Issuer :
2015/01/18 13:19:00 Subject :
2015/01/18 13:19:00 Issuer :
2015/01/18 13:19:01 ISCA :false
2015/01/18 13:19:01 Appending domain :amazon.com

from tls-observatory.

jvehent avatar jvehent commented on July 29, 2024

Those certificates are most likely X509 V1 or V2, which doesn't indicate the x509v3 extension that a certificate is a CA. We should check certificates that are V1 or V2 against the trustores, and if a certificate exists in a trustore, manually set the CA=true bit.

from tls-observatory.

0xdiba avatar 0xdiba commented on July 29, 2024

Fixed with f89bece

from tls-observatory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.