How do I convert an AWS Secret Key to SES credentials?

  • Page Owner: Not Set
  • Last Reviewed: 2023-01-10

Amazon's SES service requires different credentials from the usual AWS Key and Secret Key values. How do I calculate the correct "password" for SMTP?


Answer

Use the AWS Key as the username.

Calculate a hash of the Secret Key for the password.

To calculate the hash, use this algorithm: https://dev.azure.com/BlendInteractive/Blend%20Internal/_git/Blend-Gists?path=/SesConversion/SesCredentialsConversion.cs

Based off this: https://docs.aws.amazon.com/ses/latest/dg/smtp-credentials.html