Open kolomparrudi opened 2 years ago
Hm, not really. It looks good, except for the fact that it doesn't work.
I am not sure though I ever tested this with ECs. So that might be an issue.
I would recommend (and really appreciate it) it you could create a test for EC to the existing tests. That would most likely fail, but give us a reproducer and a future test once this is fixed.
Hi,
You are right, the problem is with the EC keys. When I print the keyStoreForSASL.getKey(...).getAlgorithm() I got ECDSA If I load it from JKS keystore I got EC.
Found similar issue and they found the problem in Bouncy Castle: https://stackoverflow.com/questions/27743045/ec-private-key-recovery-from-pem-format-with-bouncycastle
Thanks
Hi,
I'm trying to use pem-keystore for LDAP SASL External authentication:
Created a custom SSLSocketFamily:
Here is the LDAP connect part:
/tmp/tls.properties content:
If I execute it with -Djavax.net.debug=all I got these errors:
If I convert the certificate and key to jks and using the default SSLContextFactory than it is working.
The certificate is signed with ecdsa-with-SHA256.
Do you have any idea, what could be the problem?
Thanks