Every time this page loads, a new DKIM key will be created and deleted.
Key size 1024
Save your private key in a file:
Public key must be placed in the DNS Server:
default._domainkey.example.net. IN TXT "v=DKIM1 t=s p="
If you use Amavis on your server, you can generate DKIM signatures and verify it.
First you have to add in amavisd.conf the following line:
$enable_dkim_signing = 1; # loads DKIM signing code
After adding the line you can generate a DKIM signature in 4 steps:
amavisd-new genrsa private.pem
dkim_key('example.net', 'default', '/path/to/private.pem', h=>'sha256');
amavisd-new showkeys example.net
The last command would print a similar line to the Public key above. You have to add it to your domain profile on your DNS server.
amavisd-new testkeys example.net
If the test passed, the result would be:
TESTING#1 example.net: default._domainkey.example.net => pass