Uploads a server certificate entity for the AWS account. The server certificate entity includes
a public key certificate, a private key, and an optional certificate chain, which should
all be PEM-encoded.
For information about the number of server certificates you can upload, see Limitations on IAM Entities in Using AWS Identity and Access Management.
Note: |
---|
Because the body of the public key certificate, private key, and the certificate
chain can be large, you should use POST rather than GET when calling CopyC# UploadServerCertificate |
Declaration Syntax
C# |
UploadServerCertificateResponse UploadServerCertificate( UploadServerCertificateRequest request )
Parameters
- request (UploadServerCertificateRequest)
- Container for the necessary parameters to execute the UploadServerCertificate service method.
Return Value
The response from the UploadServerCertificate service method, as returned by IdentityManagementService.
Exceptions
Exception | Condition |
---|---|
EntityAlreadyExistsException |
The request was rejected because it attempted to create a resource that already exists.
|
KeyPairMismatchException |
The request was rejected because the public key certificate and the private key do
not match.
|
LimitExceededException |
The request was rejected because it attempted to create resources beyond the current
AWS account limits. The error message describes the limit exceeded.
|
MalformedCertificateException |
The request was rejected because the certificate was malformed or expired. The error
message describes the specific error.
|