I have placed pem file as a key value on AWS Secret Manager. When I downloaded the pem file it downloaded as following format.
-----BEGIN RSA PRIVATE KEY-----EncryptedText==-----END RSA PRIVATE KEY -----
How can I convert this to correct pem file format?
The following command I have used to download the secret
secrets=/usr/local/bin/aws secretsmanager get-secret-value --region us-$region --secret-id SecretName --query "SecretString" --output text
echo $secrets | jq '."keyName"'
-----BEGIN RSA PRIVATE KEY-----EncryptedText==-----END RSA PRIVATE KEY -----