Comments (6)
Hi!
Looks like KeyFactory
doesn't have access to a BouncyCastleProvider
security provider. This should be set up by the static initializer in BouncyCastleCrypto
, but I suspect that's a bit fragile.
Is this an existing system or a new one in development?
from java-u2flib-server.
I pushed an attempt to fix this on branch issue-39-ecdsa-keyfactory-not-available
, you're welcome to test if that works for you.
from java-u2flib-server.
Thank you for this fix! Could you please tell me the version for u2flib-server-core version.
Currently we are using 0.18.1
from java-u2flib-server.
I haven't released the prototype as a versioned release yet. Are you able to try to build branch issue-39-ecdsa-keyfactory-not-available
and test if the fix works?
from java-u2flib-server.
I have tested this with main method
public static void main(String[] args) throws Exception {
Provider provider = new BouncyCastleProvider();
Signature ecdsaSignature = Signature.getInstance("SHA256withECDSA", provider);
X9ECParameters curve = SECNamedCurves.getByName("secp256r1");
ECPoint point = null;
KeyFactory.getInstance("ECDSA", provider).generatePublic(
new ECPublicKeySpec(point,
new ECParameterSpec(
curve.getCurve(),
curve.getG(),
curve.getN(),
curve.getH())));
}
It is now working fine and its not throwing any exceptions
Requesting you to release this one!
from java-u2flib-server.
Great, thanks! I just pushed version 0.19.3-RC1 into the relase pipeline, it should show up on Maven Central soon. If nothing else comes up in a week I'll promote it to a proper 0.19.3 release.
from java-u2flib-server.
Related Issues (20)
- During u2f device registration getting error HOT 6
- Unexpected Token { in Example HOT 1
- Maven versioning HOT 3
- Latest release (0.15.0) missing from repo HOT 2
- Can release 0.16.0 be released? HOT 4
- deviceRegistration.toJsonWithAttestationCert() causes exception HOT 3
- u2flib-server-demo does not build
- code deployoment HOT 2
- registration failing HOT 3
- I cannot open https://localhost:8443/assets/registerIndex.html on Mac HOT 1
- java.security.InvalidKeyException: No installed provider supports this key: org.bouncycastle.jce.provider.JCEECPublicKey HOT 1
- Signing a request in JavaScript with u2f.sign gives {errorCode: 4} in chrome but works in Firefox. HOT 3
- Publish SoftKey.java as a test-jar? HOT 1
- Consistent exception hierarchy HOT 5
- shouldn't requestStorage be a cache and not userStorage HOT 1
- [Information] Scala U2F Server has been developed based on Yubico Java U2F library HOT 1
- promlens with device identification in Chomre and Opera HOT 1
- Unable to build with JDK 10 or JDK 11-ea HOT 2
- Your Example does not compile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-u2flib-server.