I am trying to retrieve SSL certificate from ACM, but unable to. I tried using the old aws-java-sdk-acm but it has a http client which is no more usable. Hence I am not able to fetch the certificate from the AWS. Please help me out as I dont see any option / acm methods in the latest aws sdk.
What do you mean by "retrieve SSL certificate"? Do you want to pull the certificate with the private key? If so, please refer to John Hanley's answer.
If you just want the public portion of the certificate (what is served from a webserver, etc.), you can call ACM's GetCertificate to pull the certificate with chain.