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

Zcrypto parsed critical nameConstraints as non-critical #251

Open
GOODPWDCETCSZ opened this issue Jan 25, 2021 · 0 comments
Open

Zcrypto parsed critical nameConstraints as non-critical #251

GOODPWDCETCSZ opened this issue Jan 25, 2021 · 0 comments
Labels

Comments

@GOODPWDCETCSZ
Copy link

Env: Ubuntu x64

Go version: 1.13, 1.15

Reproduce: ./zcertificate seed-16s31-255s21-363s29.pem

Expected result:
The extension nameConstraints is parsed as critical, as OpenSSL and GnuTLS do.

Actual result:

"name_constraints": {
      "critical": false,
      "permitted_names": [
        "www.c.com"
      ],
      "permitted_email_addresses": [
        "[email protected]"
      ],
      "permitted_ip_addresses": [
        {
          "cidr": "219.218.18.18/32",
          "begin": "219.218.18.18",
          "end": "219.218.18.18",
          "mask": "255.255.255.255"
        }
      ],
      "permitted_directory_names": [
        {
          "country": [
            "UN"
          ]
        }
      ],

Attachment

seed-16s31-255s21-363s29.zip

@cpu cpu added the bug label Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants