![]() |
nRF Connect SDK API 3.4.99
|
| int nrf_cloud_credentials_csr_generate | ( | uint32_t | sec_tag, |
| const char * | subject, | ||
| uint8_t * | out, | ||
| size_t | out_size, | ||
| size_t * | out_len ) |
#include <include/net/nrf_cloud_credentials_keygen.h>
Generate a Certificate Signing Request (CSR) for the device key.
The CSR is signed by the on-device key through PSA and written to out in DER format.
| sec_tag | The security tag whose key is used to sign the CSR. |
| subject | X.509 subject name string (for example "O=Nordic,CN=<id>"). |
| out | Destination buffer for the DER-encoded CSR. |
| out_size | Size of out in bytes. |
| out_len | On success, set to the number of DER bytes written to out. |
| 0 | If successful. |