Skip to main content

Dkim error reported, generated the key twice.. still wrong.

Comments

12 comments

  • cPanelMichael
    Hello :) Are you receiving a pass/fail for DKIM on other test utilities? You may also find this thread helpful: DKIM key split over several records not working Thank you.
    0
  • tamalero
    Hello :) Are you receiving a pass/fail for DKIM on other test utilities? You may also find this thread helpful: DKIM key split over several records not working Thank you.

    hi Michael, sadly, that address you gave me confused me even more than it helped me. I have a third party NS system (peer1.net located in ns1.peer1.net and ns2.peer1.net) But I'm confused about the "splitting the dkim code". I tried using the "dkim recipe with 3rd party external dns" thread.. and it made me get even more confused. First they talk about the "key", then they talk about the "selector", then they talk about the "public key". Can you shed some light on this? the RAW Dkim code as it appears in the local DNS resolver in WHM is:
    "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4Btz0SbbpOqslwlPyjeX8XVeURSeYlpuc3BU5J+cTPHxq8rehE1bJx5Nu3i2jFTHPUooqGJoolW3nzj/eW37Dr9Yn66QkZfXoKCrMXSfeVIKZpi2mzOOQwApD84PKwuHUWyLdA2Uq9O6e4thO9WqEb6Wdf8sDiUpE+/cUNc+F2kcmj3Tx6RuRJyJuBOQsjen7" pPSxLfXj1XGHIBOvKpCZDpPs7XTeOnqc76HXAwf+RYkfeQ4dCDc32TQVhgESxONq8G+bJ/jx8tuXKnfwMlxRdiZuYnL0JUyeZEnCVZUT4cuSA3CE1x+dClp6mqQhAsLCwoh23c/Byxnmn44jTb1QQIDAQAB\;
    in cpanel:
    "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4Btz0SbbpOqslwlPyjeX8XVeURSeYlpuc3BU5J+cTPHxq8rehE1bJx5Nu3i2jFTHPUooqGJoolW3nzj/eW37Dr9Yn66QkZfXoKCrMXSfeVIKZpi2mzOOQwApD84PKwuHUWyLdA2Uq9O6e4thO9WqEb6Wdf8sDiUpE+/cUNc+F2kcmj3Tx6RuRJyJuBOQsjen7" pPSxLfXj1XGHIBOvKpCZDpPs7XTeOnqc76HXAwf+RYkfeQ4dCDc32TQVhgESxONq8G+bJ/jx8tuXKnfwMlxRdiZuYnL0JUyeZEnCVZUT4cuSA3CE1x+dClp6mqQhAsLCwoh23c/Byxnmn44jTb1QQIDAQAB\;
    What is the locator? what is the real "key" vs the "public key" ? Note that my third party dns might eat some keys (like consecutive " " keys) but does not multisplit like the error samples. *edit* using the tool on Check a DKIM Core Key the key will always fail, claiming there is a "parsing error on line 415" on the key that cpanel gives on the respective account (on default)
    "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv+iBU2F/eHRvMVbFRzL1E74b/1VmjChWkpBEQu2ECVKjrdKESdY09bSFidDJwk4mAI6aCQuFusNTnXM/MChh/ZlKLbuga6PcVmRJrhTWfj429dFRIHdWXKc35Qt3N15zCn+Mj7ZTSWtYCl4IA2r7wkhCKjbkGhCo3YUMXRn5O+zyJ/dkJrFUx12GJWmT1Ls1s" xvth1PyZJHW0BWCPEaNdP9AaKD9poHlwBvHtjKN7/qxQAaDK0zP0ftB6aK1K+l6BmTOdPeF/3D7iQQZb2jZylONDoV/srQNRjUE7tjmZNbUtw6dByylmes6yJ8WeQG+JbxWIUmgcWuaW+QShs4C4QIDAQAB\;
    and on the bottom it says "The p= field must be base64 encoded" this is after removing the " on the 1st word.
    0
  • tamalero
    Hi Michael, Is there a way to know if the Key is 1024 bits or higher? Because cPanel now doesnt say anything about dkim. It just says that everything is correct and enabled. My DNS server manager told me that they do not support keys higher than 1024. Also, it seems that the server is not generating valid DKIM keys. I have regenerated them again and again and they are always invalid in the dkim checker. the same error of :
    The p= field must be base64 encoded
    Note that I have tried removing the spaces, the " 's the dashes, everything.. and still errors.
    0
  • johanan
    I am having the exact problem with my CPANEL DKIM, I'm trying to add the TXT record into my DNSMADEEASY control panel, it wont let me. I tried removing spaces, ", and no luck. Can anyone please help us out. I searched everywhere and no-one knows the answer. I was able to create a 1024 bit key and it worked, but CPANEL defaults to 2048 bit.
    0
  • tamalero
    I am having the exact problem with my CPANEL DKIM, I'm trying to add the TXT record into my DNSMADEEASY control panel, it wont let me. I tried removing spaces, ", and no luck. Can anyone please help us out. I searched everywhere and no-one knows the answer. I was able to create a 1024 bit key and it worked, but CPANEL defaults to 2048 bit.

    Seems many third party name servers do not support the 2048 keys. My provider also says that 1024 bit keys is the most they can handle right now. And they have "no idea" how to split the 2048 bit key correctly.. yet.. Wishing they could let you change to 1024 keys in cpanel using a toggle or something.
    0
  • VNET a.s.
    Hi all, you can split it in several ways. this is what i get from cpanel:
    default._domainkey IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2ZAFu8bFt2PqrDQH4WhjwatQDYPSjSLMaIbqEK6RQGW61m0dZOIupyMym3VxPyGcP7yJhtW/flMRmkNWbLVpmI2M9fzkB951zbPAeuAdhUM8sRIUqQgz9FzCqtXVTgcnrdS4mfZub+KjOxwcErvTgQ80L9mOZsZs6Gvnt629Lb3ar4zsBu5ciToULF6HrWDpA" Uk/GH1TE5ERPEwj7sHMQeLunvsMJi9i4JDkZlGBzbq7YQpbiWl5sNJ5XJqVZYuro+flsTKqBzaK0ssyD4wvHiD4zRmztp3FDGq2upS/qjBxFMWdtPuPRRbUS/Kphiq083HIvcZkOIYejboZ5eUw2wIDAQAB\;
    and this how it loks when I paste it to dns zone:
    default._domainkey.example.sk. IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2ZAFu8bFt2PqrDQH4WhjwatQDYPSjSLMaIbqEK6RQGW61m0dZOIupyMym3VxPyGcP7yJhtW/flMRmkNWbLVpmI2M9fzkB951zbPAeuAdhUM8sRIUqQgz9FzCqtXVTgcnrdS4mfZub+KjOxwcErvTgQ80L9mOZsZs6Gvnt629Lb3ar4zsBu5ciToULF6HrWDpA" "Uk/GH1TE5ERPEwj7sHMQeLunvsMJi9i4JDkZlGBzbq7YQpbiWl5sNJ5XJqVZYuro+flsTKqBzaK0ssyD4wvHiD4zRmztp3FDGq2upS/qjBxFMWdtPuPRRbUS/Kphiq083HIvcZkOIYejboZ5eUw2wIDAQAB"
    --beware I have added double quotes and removed last semicolon. Beware, if you use Webmin to edit your entries, be sure to edit the zone file and not the Text records, because it will show you only the first part of DKIM key. If you do it correctly, this tool at Tools - mail-tester.com shows you correct key length e.g.2048bits.
    0
  • tamalero
    Hi all, you can split it in several ways. this is what i get from cpanel:
    default._domainkey IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2ZAFu8bFt2PqrDQH4WhjwatQDYPSjSLMaIbqEK6RQGW61m0dZOIupyMym3VxPyGcP7yJhtW/flMRmkNWbLVpmI2M9fzkB951zbPAeuAdhUM8sRIUqQgz9FzCqtXVTgcnrdS4mfZub+KjOxwcErvTgQ80L9mOZsZs6Gvnt629Lb3ar4zsBu5ciToULF6HrWDpA" Uk/GH1TE5ERPEwj7sHMQeLunvsMJi9i4JDkZlGBzbq7YQpbiWl5sNJ5XJqVZYuro+flsTKqBzaK0ssyD4wvHiD4zRmztp3FDGq2upS/qjBxFMWdtPuPRRbUS/Kphiq083HIvcZkOIYejboZ5eUw2wIDAQAB\;
    and this how it loks when I paste it to dns zone:
    default._domainkey.example.sk. IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2ZAFu8bFt2PqrDQH4WhjwatQDYPSjSLMaIbqEK6RQGW61m0dZOIupyMym3VxPyGcP7yJhtW/flMRmkNWbLVpmI2M9fzkB951zbPAeuAdhUM8sRIUqQgz9FzCqtXVTgcnrdS4mfZub+KjOxwcErvTgQ80L9mOZsZs6Gvnt629Lb3ar4zsBu5ciToULF6HrWDpA" "Uk/GH1TE5ERPEwj7sHMQeLunvsMJi9i4JDkZlGBzbq7YQpbiWl5sNJ5XJqVZYuro+flsTKqBzaK0ssyD4wvHiD4zRmztp3FDGq2upS/qjBxFMWdtPuPRRbUS/Kphiq083HIvcZkOIYejboZ5eUw2wIDAQAB"
    --beware I have added double quotes and removed last semicolon. Beware, if you use Webmin to edit your entries, be sure to edit the zone file and not the Text records, because it will show you only the first part of DKIM key. If you do it correctly, this tool at Tools - mail-tester.com shows you correct key length e.g.2048bits.

    so.. the semicolon needs to be removed?
    0
  • tamalero
    Still having problems.. Peer1, which is handled by COHEN pretty much gave no time nor any interest in changing their DNS infrastructure to support 2048 keys.. my emails are being bounced because of the invalid 2048 malformed key. Is there a way to switch to 1024bit keys? everywhere I try to search, it brings me back to older threads of 2014 of "updating" to 1024 and 2048. And not the opposite.
    0
  • cPanelMichael
    Have you tried splitting up the keys as documented in the earlier post? Dkim error reported, generated the key twice.. still wrong. Thank you.
    0
  • tamalero
    Have you tried splitting up the keys as documented in the earlier post? Dkim error reported, generated the key twice.. still wrong. Thank you.

    I did try using the example, didnt work. I'm still unsure if I need to add the semicolon.
    0
  • cPanelMichael
    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • tamalero
    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you.

    Hi Michael, Already did, they told me to talk with my ISP provider.. who in turn gave me the finger. In short.. my hosting provider does not support the 2048 default sized keys. They refuse to give an ETA or even if they are going to upgrade some day to 2048 or higher. (they only accept 1028 keys). Just to say, I'm very disappointed of what has peer1 transformed after being bought by COGECO/COGENT.
    0

Please sign in to leave a comment.