This function loads the certificate (in PEM format) contained in the specified file.
The format of the certificate data is verified. If the component already has a certificate loaded, it will be replaced on success, and unchanged on failure.
- Parameters
-
pCertFile | [ in ] Filesystem pathname of the certificate file. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize must be called before this function. |
P6R::eInvalidArg | pCertFile is equal to NULL. |
P6R::eNotFound | The file in pCertFile cannot be found. |
P6R::eInvalidCert | The given certificate is in an unsupported format or is corrupted. |