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 does not represent the 'critical' value of keyUsage and basicConstraints in JSON output #245

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

Comments

@GOODPWDCETCSZ
Copy link

GOODPWDCETCSZ commented Jan 25, 2021

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

@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