Function s2n_tls_sys::s2n_cert_chain_and_key_load_pem
source · pub unsafe extern "C" fn s2n_cert_chain_and_key_load_pem(
chain_and_key: *mut s2n_cert_chain_and_key,
chain_pem: *const c_char,
private_key_pem: *const c_char
) -> c_int
Expand description
Associates a certificate chain and private key with an s2n_cert_chain_and_key
object.
cert_chain_pem
should be a PEM encoded certificate chain, with the first
certificate in the chain being your leaf certificate. private_key_pem
should be a PEM encoded private key corresponding to the leaf certificate.
@note Prefer using s2n_cert_chain_and_key_load_pem_bytes.
@param chain_and_key The certificate chain and private key handle @param chain_pem A byte array of a PEM encoded certificate chain. @param private_key_pem A byte array of a PEM encoded key.
@returns S2N_SUCCESS on success. S2N_FAILURE on failure