on 12-04-2014 3:37 PM
Bonjour,
since I installed Java 1.8 on my system I endup with the following error message when trying to connect on a Sybase instance using SSL connexion :
JZ006: Caught IOException: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Code d'erreur=0
Etat SQL=JZ006 null
Code d'erreur=0
Etat SQL=null
Paramètres de connexion :
Utilisateur=sa
Mot de passe=*******
ENG=myaseinstance
I have been looking over the net and found information about Trust Store but nothing to help me fixing this unfortunate situation.
Anyone had the same issue?
Thanks
William
It seems not related to my java installation. Once removed I still have the same issue.
I can not connect using Sybase Central but I can connect through isql with no problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi William,
Looking at my guide your error is because ssl isnt' setup for java.
Sybase Central uses a keystore to hold ssl certificates.
isql usees the trusted.txt file.
I've attached a guide to get past this.
Had to rename the zip file to txt.
Make sure when you download the attachment you rename it back to .zip
Let me know if it helps.
Regards,
Ryan
I think ASE_SSL might have been my ASE name.
Not too sure.
Appologize, didn't review this before sending it out.
So I just meant move those files to your client box.
Just need to grab the ssl certificate from the ASE and put it in %SYBASE_JRE6% folder.
Once there you can run the keytool commands.
Close and Kill Sybase Central.
Then you should be good to go.
Regards,
Ryan
You are a KING Ryan!
My connection works like a charm now!
I think I owe you a beer man ;o)
Thanks for your time and expertise Ryan, verry appreciated!
EDIT
If I can make a suggestion, if you have more than one ASE instance that is using SSL :
%SYBASE_JRE6%\bin\keytool -import -alias ase_inst_1 -file ase_inst_1.crt -keystore trustedstore
%SYBASE_JRE6%\bin\keytool -import -alias ase_inst_2 -file ase_inst_2.crt -keystore trustedstore
%SYBASE_JRE6%\bin\keytool -import -alias ase_inst_1 -file ase_inst_1.crt
%SYBASE_JRE6%\bin\keytool -import -alias ase_inst_2 -file ase_inst_2.crt
P.S. I am not quite sure why you have to import each instance cert file twice, one with the -keystore option and the second without. If you do not, it doest work, but why!? Don't know!
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.