Failed to import certificate

Hi,

I’m having trouble importing the certificate files for an IKEv2 VPN from HighProxies on my RouterOS v7.14.1 router. The script provided by HighProxies is as follows:

/tool/fetch url=https://letsencrypt.org/certs/lets-encrypt-r3.txt
/tool/fetch url=https://letsencrypt.org/certs/isrg-root-x1-cross-signed.txt

/certificate/import file-name=isrg-root-x1-cross-signed.txt
/certificate/import file-name=lets-encrypt-r3.txt

When I run the script, the certificates are not imported (see attached screenshot)
certificate-not-imported.jpg
.
I have checked the file format and script syntax, and everything seems to be correct.

Has anyone else experienced this issue? Any suggestions on how to fix it?

Thanks in advance.

Those are plain-text dumps of the certificates, not the certs themselves. You want the PEM format versions, available here.

Your solution worked perfectly. Thank you for your help.

May I ask a follow-up question? I successfully imported the Let’s Encrypt certificate on my Mikrotik with RouterOS v7.14.1, but on my Mikrotik with RouterOS v6.49.13, the import of isrg-root-x1-cross-signed.pem failed. Why is that?