aws / aws/aws-cli

getting a certificate in the correct format

Open
#2,876 3 comments 0 reactions 0 assignees View on GitHub
automation-exempt feature-request iam p3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

### Description
Right now I can get the certification like so `aws iam get-server-certificate --server-certificate-name certificateName`

would like to be able to grab the cert without having to use openssl to `-text -noout`

the work flow now I have is to format the query

`aws iam get-server-certificate --server-certificate-name certificateName --query "ServerCertificate.CertificateBody" | awk 'gsub(/"/,"",s); {gsub(/\\n/,"\n")}1'` > cert.crt

then use `openssl x509 -in cert.cert -text -noout`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.