Richard in Aws 1 minutes

Upload Ssl Certificate Load Balancer Error

Error setting certificate on load balancer. How to successfully upload SSL certificates via Amazon’s console (and cleanup the mess left behind).

This error is very misleading when you all you want is to upload an SSL certificate to an Elastic Load Balancer. The certificate is uploaded,it’s just an Amazon bug :)

When you receive the error message, simple cancel the popup window and return to change the certificate.. here you will see the certificate uploaded and verified ready for use.

The bad news (until you realise it’s just a bug you will like me) upload multiple versions of the intended certificate which isn’t tidy.

The good news, start using the amazing cli tools like this to keep your house tidy.

$ aws iam list-server-certificates
{
    "ServerCertificateMetadataList": [
        {
            "ServerCertificateId": "ASCAIU5ZOIE6HKKVVBDJV",
            "ServerCertificateName": "outofthe.net",
            "Expiration": "2020-04-10T23:59:59Z",
            "Path": "/",
            "Arn": "arn:aws:iam::12345678:server-certificate/outofthe.net",
            "UploadDate": "2017-04-11T14:39:48Z"
        }
}

Now purge the uneeded certificates.

aws iam delete-server-certificate --server-certificate-name “outofthe.net”

Life really can be simple.