so if you already know this is something you need to consider, this how-to might not help.
tl ;dr: The main reason this how-to is written is the wayPuTTYGen
saves the keys! they need to be storedas openssh
keys and notas as ssh keys
, which is the default mode when usingthe save private|public key
buttons .
In case you are looking for a how-to
PuTTYGen
RSA
key type
, 1024
2048
now one needs to remember the quote above! I spent around 4 hours trying to find out why my DKIM key pair is not working. I just missed the point, that PuTTYGen
by default saves the files as SSH-Keys
which are not the format needed for mail servers and also the format for DKIM
record; so I tried to give the ssh keys
to my mail-server and as DKIM
record, and could not understand why tools like dmark-analyzer's DKIM check
would not validate my public key!
so, to properly save your keys:
- go to
conversions
menu, andselect export OpenSSH Key
, select the path you want foryour private key
. - now you need to create
your public key
from your private key. to do so, youneed openssl
– which is usually delivered withapache
if you use itswindows
builds – or a similar tool, which generatespublic keys
from private keys
. let’s assume youhave openssl
. open command prompt
, use the following command to generatepublic key
from the key generated inprevious step (assuming it’s stored inc:\private.key
):
openssl rsa -in c:\private.key -pubout -out c:\public.pem
there you go! now you can use these 2 keys for your mail server and DKIM record! 🙂
PS: maybe there is a way to generate openssh
public key with PuTTYGen
too, but I don’t know about it. if I find something out, I’ll update this post…
Comments are closed, but trackbacks and pingbacks are open.