Skip to content

Instantly share code, notes, and snippets.

@underdown
Created July 18, 2018 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save underdown/a93878f8990dc31f07d4d94bf9441e2f to your computer and use it in GitHub Desktop.
Save underdown/a93878f8990dc31f07d4d94bf9441e2f to your computer and use it in GitHub Desktop.
generate dkim keys
mkdir /opt/dkim-keys
chmod 700 /opt/dkim-keys
pushd /opt/dkim-keys
openssl genrsa -out news.healinghempproducts.com.key 2048 # private key mailtrain.example.com.key
openssl rsa -in news.healinghempproducts.com.key -out news.healinghempproducts.com.pub -pubout -outform PEM # public key mailtrain.example.com.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment