ssl_certificate

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::binary(), DbHandle::term()) -> [der_cert()]

validate_extension(X1::term(), Reason::{extension, #'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()

public_key_type(X1::term()) -> rsa | dsa | ec

is_valid_extkey_usage(KeyUse, X2) -> term()

View Functions