Reputation: 2384
I created an SSL Certificate using AWS Certificate manager to use on our EB Load Balancer.
We have a device that needs the public certificate to communicate over HTTPS. I know AWS holds the private key, is it possible to download the public key?
Upvotes: 2
Views: 5773
Reputation: 36043
The AWS ACM does not provide an API to download the public key of an ACM SSL certificate.
However, once you have your ACM certificate setup on an ELB or CloudFront, the public key will be served when you connect to it via HTTPS. From there, you may be able to save the public key.
Try using OpenSSL to get and save the key:
openssl s_client -connect the.host.name:443 | openssl x509 -pubkey -noout
Source: https://security.stackexchange.com/questions/16085/how-to-get-public-key-of-a-secure-webpage
Upvotes: 11