DirectoryService.Client.register_certificate(**kwargs)¶Registers a certificate for a secure LDAP or client certificate authentication.
See also: AWS API Documentation
Request Syntax
response = client.register_certificate(
DirectoryId='string',
CertificateData='string',
Type='ClientCertAuth'|'ClientLDAPS',
ClientCertAuthSettings={
'OCSPUrl': 'string'
}
)
[REQUIRED]
The identifier of the directory.
[REQUIRED]
The certificate PEM string that needs to be registered.
ClientLDAPS or ClientCertAuth . The default value is ClientLDAPS .A ClientCertAuthSettings object that contains client certificate authentication settings.
Specifies the URL of the default OCSP server used to check for revocation status. A secondary value to any OCSP address found in the AIA extension of the user certificate.
dict
Response Syntax
{
'CertificateId': 'string'
}
Response Structure
(dict) --
CertificateId (string) --
The identifier of the certificate.
Exceptions
DirectoryService.Client.exceptions.DirectoryUnavailableExceptionDirectoryService.Client.exceptions.DirectoryDoesNotExistExceptionDirectoryService.Client.exceptions.InvalidCertificateExceptionDirectoryService.Client.exceptions.CertificateLimitExceededExceptionDirectoryService.Client.exceptions.CertificateAlreadyExistsExceptionDirectoryService.Client.exceptions.UnsupportedOperationExceptionDirectoryService.Client.exceptions.InvalidParameterExceptionDirectoryService.Client.exceptions.ClientExceptionDirectoryService.Client.exceptions.ServiceException