Expand description
C509 certificate CLI
Structsยง
- C509
Json ๐A struct representing the JSON format of C509 certificate.
Enumsยง
- Cli ๐Commands for C509 certificate generation, verification and decoding
Constantsยง
- ED25519 ๐Ed25519 oid and parameter - default algorithm.
- SELF_
SIGNE ๐D_ INT Integer indicate that certificate is self-signed. 0 for Natively Signed C509 Certificate following X.509 v3 1 for CBOR re-encoding of X.509 v3 Certificate
Functionsยง
- decode ๐Decode the certificate to JSON.
- determine_
issuer ๐Determine issuer of the certificate. If self-signed is true, issuer is the same as subject. Otherwise, issuer must be present. - Extract a
RelativeDistinguishedName
from aName
. - generate ๐A function to generate C509 certificate.
- get_
key_ ๐type Get the key type. Currently support only Ed25519. - main ๐
- Parse date string to i64.
- parse_
public_ ๐key Parse public key from file path. - parse_
serial_ ๐number Generate random serial number if not provided - time_
to_ ๐string Convert time in i64 to string. - Validate the certificate type.
- verify ๐Verify the signature of the certificate given public key file path.
- write_
to_ ๐output_ file Write a data to a file given an output path.