Added S3 certificate retrieval