mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-08 22:36:48 +02:00
add docs
This commit is contained in:
@ -6,6 +6,11 @@ You can convert other certificate formats (e.g. PKCS #7, PKCS #12, etc.) by
|
|||||||
processing them through a program like `openssl` and sending the output to
|
processing them through a program like `openssl` and sending the output to
|
||||||
`jc`. (See examples below)
|
`jc`. (See examples below)
|
||||||
|
|
||||||
|
> Note: `jc` does not verify the integrity of the certificate, which
|
||||||
|
> requires calculating the hash of the certificate body and comparing it to
|
||||||
|
> the the hash in the certificate's signature after it is decrypted with the
|
||||||
|
> issuer certificate's public key.
|
||||||
|
|
||||||
Usage (cli):
|
Usage (cli):
|
||||||
|
|
||||||
$ cat certificate.pem | jc --x509-cert
|
$ cat certificate.pem | jc --x509-cert
|
||||||
@ -119,6 +124,39 @@ Schema:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Subject Alternative Name:
|
||||||
|
{
|
||||||
|
"extn_id": "subject_alt_name",
|
||||||
|
"critical": boolean,
|
||||||
|
"extn_value": [
|
||||||
|
string
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
Certificate Policies:
|
||||||
|
{
|
||||||
|
"extn_id": "certificate_policies",
|
||||||
|
"critical": boolean,
|
||||||
|
"extn_value": [
|
||||||
|
{
|
||||||
|
"policy_identifier": string,
|
||||||
|
"policy_qualifiers": [ array or null
|
||||||
|
{
|
||||||
|
"policy_qualifier_id": string,
|
||||||
|
"qualifier": string
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
Signed Certificate Timestamp List
|
||||||
|
{
|
||||||
|
"extn_id": "signed_certificate_timestamp_list",
|
||||||
|
"critical": boolean,
|
||||||
|
"extn_value": string # [0]
|
||||||
|
}
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
$ cat entrust-ec1.pem | jc --x509-cert -p
|
$ cat entrust-ec1.pem | jc --x509-cert -p
|
||||||
|
Reference in New Issue
Block a user