#include <TlsOptions.h>
Options for TLS, when using a PKCS#11 library for private key operations.
- See also
- TlsContextOptions::InitClientWithMtlsPkcs11()
◆ TlsContextPkcs11Options()
- Parameters
-
pkcs11Lib | use this PKCS#11 library |
allocator | Memory allocator to use. |
◆ SetCertificateFileContents()
void Aws::Crt::Io::TlsContextPkcs11Options::SetCertificateFileContents |
( |
const String & |
contents | ) |
|
|
noexcept |
Use this X.509 certificate (contents in memory). The certificate may be specified by other means instead (ex: SetCertificateFilePath())
- Parameters
-
contents | contents of PEM-formatted certificate file. |
◆ SetCertificateFilePath()
void Aws::Crt::Io::TlsContextPkcs11Options::SetCertificateFilePath |
( |
const String & |
path | ) |
|
|
noexcept |
Use this X.509 certificate (file on disk). The certificate may be specified by other means instead (ex: SetCertificateFileContents())
- Parameters
-
path | path to PEM-formatted certificate file on disk. |
◆ SetPrivateKeyObjectLabel()
void Aws::Crt::Io::TlsContextPkcs11Options::SetPrivateKeyObjectLabel |
( |
const String & |
label | ) |
|
|
noexcept |
Specify the label of the private key object on the PKCS#11 token. If not specified, the key will be chosen based on other criteria (such as being the only available private key on the token).
- Parameters
-
label | label of private key object |
◆ SetSlotId()
Specify the slot ID containing a PKCS#11 token. If not specified, the token will be chosen based on other criteria (such as token label).
- Parameters
-
◆ SetTokenLabel()
void Aws::Crt::Io::TlsContextPkcs11Options::SetTokenLabel |
( |
const String & |
label | ) |
|
|
noexcept |
Specify the label of the PKCS#11 token to use. If not specified, the token will be chosen based on other criteria (such as slot ID).
- Parameters
-
◆ SetUserPin()
void Aws::Crt::Io::TlsContextPkcs11Options::SetUserPin |
( |
const String & |
pin | ) |
|
|
noexcept |
Use this PIN to log the user into the PKCS#11 token. Leave unspecified to log into a token with a "protected authentication path".
- Parameters
-
The documentation for this class was generated from the following files: