pub unsafe extern "C" fn s2n_cert_chain_and_key_load_pem_bytes(
    chain_and_key: *mut s2n_cert_chain_and_key,
    chain_pem: *mut u8,
    chain_pem_len: u32,
    private_key_pem: *mut u8,
    private_key_pem_len: u32
) -> 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.

@param chain_and_key The certificate chain and private key handle @param chain_pem A byte array of a PEM encoded certificate chain. @param chain_pem_len Size of chain_pem @param private_key_pem A byte array of a PEM encoded key. @param private_key_pem_len Size of private_key_pem

@returns S2N_SUCCESS on success. S2N_FAILURE on failure