- base64Encode
char[] base64Encode(T t)
- base64EncodeUrlSafe
char[] base64EncodeUrlSafe(T t)
Encode data as URl-safe Base64
- base64EncodeUrlSafe
char[] base64EncodeUrlSafe(BIGNUM* bn)
Encode BIGNUM data as URl-safe Base64
- convertDERtoPEM
string convertDERtoPEM(char[] der)
Convert certificate from DER format to PEM format
- extractExpiryData
T extractExpiryData(const(char[]) cert)
Extract expiry date from a PEM encoded Zertificate
- getBigNumber
string getBigNumber(BIGNUM* bn)
Get the contents of a big number as string
- getBigNumberBytes
ubyte[] getBigNumberBytes(BIGNUM* bn)
Get the content bytes of a big number as string
- makeCertificateSigningRequest
tupleCsrPkey makeCertificateSigningRequest(string[] domainNames)
Create a CSR with our domains
- sha256Encode
ubyte[SHA256_DIGEST_LENGTH] sha256Encode(char[] s)
Calculate the SHA256 of a string
- signDataWithSHA256
char[] signDataWithSHA256(char[] s, EVP_PKEY* privateKey)
Sign a given string with an SHA256 hash
- toString
string toString(BIO* bio)
Export BIO contents as an array of immutable chars (string)
- toVector
char[] toVector(BIO* bio)
Export BIO contents as an array of chars
Small helpers for libCURL
This module contains all the OpenSSL related helpers to wrap functionality of the D language binding provided by the dub module 'openssl'.
See: https://github.com/D-Programming-Deimos/openssl