View Source ExFiskal.PKCS12 (ExFiskal v0.1.2)

Handles PKCS12 certificate operations including parsing, key extraction, and signing. All functions accept binary data instead of file paths.

Summary

Functions

Extracts certificates from PKCS12 binary data.

Extracts the private key from PKCS12 binary data.

Returns the current OpenSSL version installed on the system.

Parses PKCS12 binary data and returns its contents.

Signs a string using the private key from the PKCS12 binary data. Returns the base64-encoded signature.

Functions

extract_certs(pkcs12_binary, password)

Extracts certificates from PKCS12 binary data.

extract_key(pkcs12_binary, password)

Extracts the private key from PKCS12 binary data.

get_openssl_version()

Returns the current OpenSSL version installed on the system.

parse_data(pkcs12_binary, password)

Parses PKCS12 binary data and returns its contents.

sign_string(string, pkcs12_binary, password)

Signs a string using the private key from the PKCS12 binary data. Returns the base64-encoded signature.