The key works fine. I can read and parse it correctly. However, I meant that you provide the problematic file - not the key as text.
The key pasted here is UTF8 with no encoding or BOM issues, as this is what the forum system stores and the browser correctly converted when you pasted it - I can read it and import it without issue. If you suspect issues with encoding/decoding when storing it as a file, I need to look at the file. In theory it should not matter, as you also copy-paste the content from the file back to r3 when you install the public key in the admin panel. But you mentioned possible issues with the file so I wanted to check/confirm.
In the meantime I booted up my MacMini and tested key generation, export and re-import without issues.
The best test I can think of is that you generate a new pair of private/public keys, save them as files, as you did before, and provide them to me. As you would share those files publicly, you should not use them for anything else - but this way I can check what is going wrong here.
apaeffgen could not finish module import, x509: failed to parse public key (use ParsePKIXPublicKey instead for this key format
From the error, it seams that the output format is different to what we produce with our key generator. There are many ways to generate and export RSA keys. To check what goes wrong here, I need the output file please.