C API for BALTECH SDK

§ brp_Pki_GetX509Csr()

brp_errcode brp_Pki_GetX509Csr ( brp_protocol  protocol,
brp_buf Csr,
size_t *  Csr_len,
brp_mempool mempool 
)

Every reader is shipped with a unique ECC P-256 key, generated at the time of manufacturing.

This command returns a certificate signing request (CSR) over the public part of the reader's key, which can be signed by a certificate authority. To store the signed certificate on the reader, run the brp_Pki_StoreX509Cert() command afterwards.

Parameters
[in]protocolused to execute the command
[out]CsrCertificate signing request (CSR) for the reader's public key encoded in ASN.1 DER format.
[out]Csr_len
[in]mempoolis used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool