nn::boss::RegisterPrivateRootCa Functionnn::Result RegisterPrivateRootCa( const u8 * pCertData, size_t certDataSize );
| Name | Description | |
|---|---|---|
| in | pCertData | Root certificate data. The data format conforms to the ASN.1 standard. |
| in | certDataSize | Specifies the size of the client certificate data. |
Result values listed below. | Value | Description |
|---|---|
ResultSuccess |
Registration successful. |
ResultIpcNotSessionInitialized |
The session has not been initialized. This result is returned if this function is called before the Initialize function. Always call the Initialize function first thing when you use the BOSS library. |
| A value other than the above. | Unexpected error (see boss_Result.h for error details). |
Registers a private root certificate with the library. This certificate can be used for HTTPS communication.
To use a registered certificate in a task, call the SetPrivateRootCa function from either the DownloadAction or NsaDownloadAction class. Can register only one root certificate. When multiple instances have been registered, only the most recently registered one is valid.
CONFIDENTIAL