I then used openssl to convert the public key format:
openssl rsa -pubin -in my-github.key -out my-github.pem -inform der
But I end up with this message when I try to import the key as an authentication key in Github.
Key is invalid. You must supply a key in OpenSSH public key format
Could you please help me figure out what’s wrong?
The alternative would be to generate the key pair with openssl locally and import the private key to the nitrokey using pkcs15-tool but well, that’s not the point of such HSM key…