Origin ASNs
- Commercial: 14618 & 16509
- GovCloud: 8987
-
Generate private key
openssl genpkey -aes256 -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out private-key.pem
-
Generate self-signe public cert
openssl req -new -x509 -key private-key.pem -days 365 | tr -d "\n" > certificate.pem
Note: Data entered does not matter, but is publicly discoverable via Whois/RDAP once uploaded -
Display and upload certificate.pem to RIR/LIR/NIR
cat certificate.pem
-
Construct the message to be signed
text_message="1|aws|<account id>|<resource id>|<message expiration date>|SHA256|RSAPSS“
Print it again if necessary to make sure it looks right:echo $text_message
-
Sign the message with your private key
signed_message=$( echo -n $text_message | openssl dgst -sha256 -sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:-1 -sign private-key.pem -keyform PEM | openssl base64 | tr -- '+=/' '-_~' | tr -d "\n")
-
Print the signed message
echo $signed_message