AWS SDK for .NET Documentation
UploadServerCertificate Method (request)
Amazon ► Amazon.IdentityManagement ► AmazonIdentityManagementService ► UploadServerCertificate(UploadServerCertificateRequest)
Did this page help you? Yes No Tell us about it...
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
. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in Using IAM.

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.

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)