zcrypto icon indicating copy to clipboard operation
zcrypto copied to clipboard

Zcrypto does not represent the 'critical' value of keyUsage and basicConstraints in JSON output

Open GOODPWDCETCSZ opened this issue 3 years ago • 0 comments

Env: Ubuntu x64

Go version: 1.13, 1.15

Reproduce: ./zcertificate seed-7s35-9s14-10s18-26s21.pem

Expected result: keyUsage and basicConstraints are shown "critical": true/false

as 2.5.29.46 (Freshest CRL) is shown "critical": false.

Actual result:

"extensions": { "key_usage": { "certificate_sign": true, "value": 32 }, "basic_constraints": { "is_ca": false }, "authority_key_id": "ead39df2fa12151d6b90011f1ddb277fafd165d7" }, "unknown_extensions": [ { "id": "2.5.29.46", "critical": false, "value": "MEswSaAVoRMwEQYDVQQDDApraW94aWEuY29tgQMHf4CiK4EHZ0BoLmNvbYIPd3d3LmV4YW1wbGUuY29thg93d3cuYi5jb20vYy5leHQ=" }

Attachment seed-7s35-9s14-10s18-26s21.zip

GOODPWDCETCSZ avatar Jan 25 '21 13:01 GOODPWDCETCSZ