moonbitstack/mooncred/x509 does not have a README file
pub(all) suberror Refused {
Malformed(at~ : Int, String)
Expired(at~ : Int)
Premature(at~ : Int)
Issuer
Authority(at~ : Int)
Signature(at~ : Int)
Depth(limit~ : Int)
Budget(limit~ : Int)
Host(String)
Purpose(at~ : Int)
Critical(at~ : Int, oid~ : String)
Constraint(at~ : Int, name~ : String)
Algorithm(at~ : Int, oid~ : String)
} derive(Eq, Debug)pub(all) struct Constraints {
permitted : Array[GeneralName]
excluded : Array[GeneralName]
} derive(Eq, Debug)pub(all) struct Exts {
san : Array[GeneralName]
ca : Bool
path_len : Int?
key_usage : Bits?
eku : Array[String]?
ski : Bytes?
aki : Bytes?
constraints : Constraints?
unknown_critical : Array[String]
} derive(Eq, Debug)pub struct Roots {
// private fields
}fn alg_ec_key() -> Bytesfn alg_ecdsa_sha256() -> Bytesfn common_name(cn : String) -> Bytesfn dns_match(pattern : String, host : String) -> Boollet eku_server_auth : Stringlet oid_cn : Stringfn self_signed(key : PrivateKey, serial : Bytes, cn : String, not_before : String, not_after : String) -> Bytesfn tbs_of(serial : Bytes, cn : String, not_before : String, not_after : String, pub_key : PublicKey) -> Bytesfn validity_of(not_before : String, not_after : String) -> BytesInstall
Download zipmooncred — credential formats for MoonBit: JSON Web Tokens, JWS and JWK with the JOSE algorithm set, and X.509 certificates with chain validation to the Mozilla roots, built on mooncrypt's algorithms.