future-nail-59564
11/23/2020, 10:35 PMpgpKey
property of classes such aws.iam.AccessKey
and aws.iam.UserLoginProfile
. It’s really unclear what the base-64 encoded PGP public key is expected to be. No matter what I try, I always get this:
* Error encrypting IAM Access Key Secret: error parsing given PGP key: openpgp: invalid data: tag byte does not have MSB set
I created my key-pair using:
$ openssl genrsa -out keypair.pem 2048
Then exported the public-key part with:
$ openssl rsa -in keypair.pem -pubout -out publickey.crt
Then I tried to pass that public key using different variations: 1. with/without BEGIN/END markers, 2. with/without new lines, 3. with/without over-base-64-encoding the whole thing, etc… But no luck! 😓little-cartoon-10569
11/23/2020, 10:46 PMfuture-nail-59564
11/23/2020, 11:11 PM