Hello,
the problem I had yesterday was probably related to my Ubuntu PC.
I've tried now using a MacOS and it works fine.
However when I try to register in my application (where for the moment I've simply used the sample code provided in your example) I get a "Bad signature" error message during the finishRegistration method:
Code:
com.yubico.u2f.exceptions.U2fBadInputException: Bad signature
at com.yubico.u2f.crypto.BouncyCastleCrypto.checkSignature(BouncyCastleCrypto.java:45)
at com.yubico.u2f.crypto.BouncyCastleCrypto.checkSignature(BouncyCastleCrypto.java:31)
at com.yubico.u2f.data.messages.key.RawRegisterResponse.checkSignature(RawRegisterResponse.java:97)
at com.yubico.u2f.U2fPrimitives.finishRegistration(U2fPrimitives.java:89)
at com.yubico.u2f.U2F.finishRegistration(U2F.java:81)
at com.yubico.u2f.U2F.finishRegistration(U2F.java:67)
at U2FManager.finishRegistration(U2FManager.java:82)
The RegisterResponse and RegisterRequestData seem correct...
What could be the cause of this problem?
Thanks and best regards