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 wayPuTTYGensaves the keys! they need to be storedas opensshkeys and notas as ssh keys, which is the default mode when usingthe save private|public keybuttons .
In case you are looking for a how-toPuTTYGenRSAkey type, 10242048
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 PuTTYGenby 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 conversionsmenu, andselect export OpenSSH Key, select the path you want foryour private key. 
- now you need to create your public keyfrom your private key. to do so, youneed openssl– which is usually delivered withapacheif you use itswindowsbuilds – or a similar tool, which generatespublic keysfrom private keys. let’s assume youhave openssl. open command prompt, use the following command to generatepublic keyfrom 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.