Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issuer not displayed when using -i option #101

Open
tonysgi opened this issue Feb 10, 2021 · 1 comment
Open

Issuer not displayed when using -i option #101

tonysgi opened this issue Feb 10, 2021 · 1 comment

Comments

@tonysgi
Copy link

tonysgi commented Feb 10, 2021

Hi. This latest version does not display the issuer:

Version 4.14:

ssl-cert-check -i -f testssl

Host Issuer Status Expires Days


www.apple.com:443 Valid Oct 8 2021 240
www.google.com:443 Valid Apr 13 2021 62

If I use version 4.10:

ssl-cert-check-4_10 -i -f testssl

Host Issuer Status Expires Days


www.apple.com:443 DigiCert, Inc. Valid Oct 8 2021 240
www.google.com:443 Google Trust Serv Valid Apr 13 2021 62

@tonysgi
Copy link
Author

tonysgi commented Feb 7, 2022

The problem happens depending on the openssl version in use.

Works for openssl 1.0.2k:

    CERTISSUER=$("${OPENSSL}" x509 -in "${CERT_TMP}" -issuer -noout | \
                 "${AWK}" 'BEGIN {RS="/" } $0 ~ /^O=/
                             { print substr($0,3,17)}')

Works for openssl 1.1.1k:

    CERTISSUER=$("${OPENSSL}" x509 -in "${CERT_TMP}" -issuer -noout | \
                 "${AWK}" 'BEGIN {RS=", " } $0 ~ /^O =/
                             { print substr($0,5,17)}')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant