ssl_certificate

DATA TYPES

certdb_ref() = reference()
db_handle() = term()
der_cert() = binary()

Functions


trusted_cert_and_path(CertChain::[der_cert()], CertDbHandle::db_handle(), CertDbRef::certdb_ref()) -> {der_cert() | unknown_ca, [der_cert()]}

certificate_chain(OwnCert::undefined | binary(), CertDbHandle::db_handle(), CertsDbRef::certdb_ref()) -> {error, no_cert} | {ok, [der_cert()]}

file_to_certificats(File::string(), DbHandle::term()) -> [der_cert()]

validate_extension(X1::term(), Reason::#'Extension'{} | {bad_cert, atom()} | valid, Role::term()) -> {valid, term()} | {fail, tuple()} | {unknown, term()}

is_valid_key_usage(KeyUse::list(), Use::term()) -> boolean()

select_extension(Id::term(), Extensions::list()) -> undefined | #'Extension'{}

extensions_list(Extensions::asn1_NOVALUE | list()) -> list()

signature_type(RSA::term()) -> rsa | dsa

is_valid_extkey_usage(KeyUse, X2) -> term()