nRF Connect SDK API 3.4.99
Loading...
Searching...
No Matches
nrf_cloud_credentials_keygen.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef NRF_CLOUD_CREDENTIALS_KEYGEN_H_
8#define NRF_CLOUD_CREDENTIALS_KEYGEN_H_
9
10#include <stddef.h>
11#include <stdint.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
55
66
81int nrf_cloud_credentials_csr_generate(uint32_t sec_tag, const char *subject,
82 uint8_t *out, size_t out_size, size_t *out_len);
83
105int nrf_cloud_credentials_pubkey_get(uint32_t sec_tag, uint8_t *out, size_t out_size,
106 size_t *out_len);
107
110#ifdef __cplusplus
111}
112#endif
113
114#endif /* NRF_CLOUD_CREDENTIALS_KEYGEN_H_ */
int nrf_cloud_credentials_csr_generate(uint32_t sec_tag, const char *subject, uint8_t *out, size_t out_size, size_t *out_len)
Generate a Certificate Signing Request (CSR) for the device key.
int nrf_cloud_credentials_key_generate(uint32_t sec_tag)
Generate the device private key on-device for the given sec tag.
int nrf_cloud_credentials_pubkey_get(uint32_t sec_tag, uint8_t *out, size_t out_size, size_t *out_len)
Export the public key of the on-device key pair.
int nrf_cloud_credentials_key_delete(uint32_t sec_tag)
Delete the on-device device private key for the given sec tag.