Export public IPSEC key fails

Hello,

I am trying to export a public IPSEC key via /ip/ipsec/key/export-pub-key but I get the following message:
failure: unable to encode key!

Thanks in advance.

Sincerely,

Felix
2023-07-24 09_48_44_WinBox (64bit) v7.10.2 on hEX S.png
config.rsc (5.26 KB)

Hi. I am running into the same error. Just wondering if you have found the solution? Thanks.

I suspect this may have been broken in “ipsec - refactor public key authentication;” in 7.10. As a workaround you can generate the key elsewhere and copy it to the routeros box.

Just to update. I reported this issue to Mikrotik support. They came back with an 7.12 alpha build which includes the fix to this issue. So I suppose this will be resolved at least in the official 7.12 release (or next update).

HTH.

Thank you very much for your answers. I am sorry for my late answer since I have been out of office.
@Valsily: Thanks for reporting the issue to Mikrotik support. It seems that the problem will be solved soon.
Thanks again for you help.

Sincerely,

Felix

Np.

Confirmed fixed in the recent update 7.11

http://forum.mikrotik.com/t/v7-11-2-stable-is-released/168778/1

*) ipsec - fixed public key export (introduced in v7.10);