paper-cred icon indicating copy to clipboard operation
paper-cred copied to clipboard

DNS TXT record

Open DenisPitcher opened this issue 5 years ago • 7 comments

The readme suggests conversion of the PEM to remove the comments and new line characters however the javascript sample app doesn't recognize this format and the current text record for keys.pathcheck.org doesn't either: "-----BEGIN PUBLIC KEY-----\nMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAE6DeIun4EgMBLUmbtjQw7DilMJ82YIvOR\n2jz/IK0R/F7/zXY1z+gqvFXfDcJqR5clbAYlO9lHmvb4lsPLZHjugQ==\n-----END PUBLIC KEY-----\n"

DenisPitcher avatar Apr 10 '21 21:04 DenisPitcher

Hi Denis,

Yes, we made the change on the protocol and the demo app did not follow. We are currently finishing this adjustment on the demo codebase.

vitorpamplona avatar Apr 10 '21 21:04 vitorpamplona

I also quickly updated the Javascript, Ruby, Python, Java and Sell Script demos. You can test with pcf.vitorpamplona.com while keys.pathcheck.org doesn't update.

vitorpamplona avatar Apr 10 '21 22:04 vitorpamplona

keys.pathcheck.org has been updated as well.

vitorpamplona avatar Apr 10 '21 22:04 vitorpamplona

Thanks, though it looks like you're still not including the specified \n in keys.pathcheck.com and pcf.vitorpamplona.com

DenisPitcher avatar Apr 11 '21 14:04 DenisPitcher

Hum.. which one are you referring to? The only \n that should be converted is the one in the middle of the public key. It should be turned into a \\n. You can see it down below.

MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAE6DeIun4EgMBLUmbtjQw7DilMJ82YIvOR\\n2jz/IK0R/F7/zXY1z+gqvFXfDcJqR5clbAYlO9lHmvb4lsPLZHjugQ==

vitorpamplona avatar Apr 11 '21 14:04 vitorpamplona

Hi Vitor,

Sorry, I should have written it as code \\n. For keys.pathcheck.org I'm seeing MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAE6DeIun4EgMBLUmbtjQw7DilMJ82YIvOR\n2jz/IK0R/F7/zXY1z+gqvFXfDcJqR5clbAYlO9lHmvb4lsPLZHjugQ== when using nslookup and when using https://mxtoolbox.com/SuperTool.aspx?action=txt%3akeys.pathcheck.org&run=toolpage but when using the google https://dns.google/resolve?name=KEYS.PATHCHECK.ORG&type=TXT MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAE6DeIun4EgMBLUmbtjQw7DilMJ82YIvOR\\n2jz/IK0R/F7/zXY1z+gqvFXfDcJqR5clbAYlO9lHmvb4lsPLZHjugQ==

So I'm unclear as to whether I specifically need to replace "\n" with "\n" as specified in my txt record or not

DenisPitcher avatar Apr 11 '21 14:04 DenisPitcher

Some DNS Lookup tools already convert the \\n to \n for you. It depends on the lib you use. If they do, then you should not need to convert yourself.

vitorpamplona avatar Apr 11 '21 14:04 vitorpamplona