Hello,
I’m using the mailcow API to access DKIM data for a domain . When I make a “Get DKIM Key” call, the spec says the response is:
{
“pubkey”: “MIIBIj…”,
“length”: “2048”,
“dkim_txt”: “v=DKIM1;k=rsa;t=s;s=email;p=MIIBIj…”,
“dkim_selector”: “dkim”,
“privkey”: ""
}
But the contents of the privkey value appears to be an encoded form of the actual private key (when compared with the version that the web interface displays).
I’d like the secret to obtaining the actual private key through the API.
Many thanks!
Richard
Update: It turns out that the privkey is base64 encoded