Quotation marks bug in DKIM
Summary
Generated DNS record adds quotation marks into DKIM string.
Steps to reproduce
- Click on "Generate DKIM Private-key"
- As result the DKIM private-key and DNS-Record will be generated.
- Generated DNS record has extra quotation marks inside the string as it is shown on the attached screenshot.
Correct behavior
No quotation marks has to be created.
To confirm it the next command can be run:
openssl rsa -in dkim_private.pem -pubout -outform der 2>/dev/null | openssl base64 -A
The output:
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwsd8vLHxhCNsB/QPnTaaT1lQcXfy+tK4cEsqhSbGhZsDotOxdunnWc59MW96wz/e154gnjaK/fWnltskFXK097ZqGvYq0p/iE24yeZZjrSUHFqM5G53KC9CfrEu+ItogSFgaI6D4sgNqRPGpySj6NyyiMBVFe5KD9eRXayzDmhoTlwqk3AjsHddCqdZ/wISYfAIWldM6R6NK/Qt35dL8PR375oqlMO+T3ZG5U8jfyvR0sViX+vOiz8oKmCg45za7JjRQIq98wxK4ecusqvEKrFAvlRQ9WGEq+rOj405eOT3bIW9E0ujH8vsTI771oPtngMTu0AgBNxwsOCXVpZCmUQIDAQAB
where dkim_private.pem
DKIM private-key (the very same example is in the attached file)
dkim_private.pem
Environment
Debian GNU/Linux 10 (buster)
define('ISPC_APP_VERSION', '3.2.4'); $conf['app_version'] = ISPC_APP_VERSION;