Skip to content

Zcrypto does not parse the "critical" of certificatePolicies in JSON output #255

@GOODPWDCETCSZ

Description

@GOODPWDCETCSZ

Env: Ubuntu x64

Go version: 1.13, 1.15

Reproduce: ./zcertificate seed-4s18-107s39-129s28-386s32-409s26-544s38.pem

Expected result:
similar to the "critical" in the following

X509v3 Certificate Policies: critical
                Policy: 2.23.140.1.2.1
                  CPS: https://www.a.com/b.ext
                  CPS: https://www.c.com/d.ext
                  User Notice:
                    Organization: Org A
                    Numbers: 1, 3, 5
                    Explicit Text: here is the explicit text

Actual result:

"certificate_policies": [
      {
        "id": "2.23.140.1.2.1",
        "cps": [
          "https://www.a.com/b.ext",
          "https://www.c.com/d.ext"
        ],
        "user_notice": [
          {
            "explicit_text": "here is the explicit text",
            "notice_reference": [
              {
                "organization": "Org A",
                "notice_numbers": [
                  1,
                  3,
                  5
                ]
              }
            ]
          }
        ]
      }

Attachments:

seed-4s18-107s39-129s28-386s32-409s26-544s38.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions