nn::boss::RegisterPrivateClientCert Function

Syntax

nn::Result RegisterPrivateClientCert(
     const u8 * pCertData,
     size_t certDataSize,
     const u8 * pPrivateKeyData,
     size_t privateKeyDataSize
);

Arguments

Name Description
in pCertData Client certificate data. The data format conforms to the ASN.1 standard.
in certDataSize Specifies the size of the client certificate data.
in pPrivateKeyData Private key data. The data format conforms to the ASN.1 standard.
in privateKeyDataSize Specifies the size of the private key data.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
ResultSuccess Registration successful.
ResultIpcNotSessionInitialized Either the session is not initialized or there are incompatible permissions. This Result is returned if this function is called before the Initialize or the InitializePriviledged function is called. Always call the Initialize or InitializePrivileged function first when you use the BOSS library.
A value other than the above. Unexpected error (see boss_Result.h for error details).

Description

Registers an independent client certificate and private key with the library. This certificate can be used for HTTPS communication. To use a registered certificate in a task, call the SetPrivateClientCert function from either the DownloadAction or NsaDownloadAction class. Can register only one client certificate. When multiple instances have been registered, only the most recently registered one is valid.

Revision History

2010/09/16
Initial version.

CONFIDENTIAL