abla/tls/pure/identity

Generated from source.

Import with import "abla/tls/pure/identity".

Source: abla/tls/pure/identity/entry.ab

tlsIdentityFromPem (fun)

trusted fun tlsIdentityFromPem(certificatePem: string, keyPem: string,
    passphrase: string = ""): TlsIdentity

The identity of a certificate PEM (the leaf first, then intermediates) and a private key PEM; passphrase opens an encrypted PKCS#8 key. Check error (empty on success).

tlsIdentityFromPkcs12 (fun)

trusted fun tlsIdentityFromPkcs12(der: string, password: string): TlsIdentity

The identity of a PKCS#12 container (PFXv3 with a password MAC, PBES2 encryption: what OpenSSL 3 and current tools write): its private key and its certificate chain, the leaf first. The leaf is the certificate whose key is the private key; the rest follow in issuer order (certificates that do not chain are left out). password is the container's. Check error (empty on success).

Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.