File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java keystorage load problem
Joined: Apr 01, 2014
Apr 01, 2014 05:56:54
I use Eclipse to make ssl socket server-client communication. I am trying to use self signed certificate.
I make keystorage with Eclipse keytool. Than I try to load this key storage:
String ksName = "herong.jks"; KeyStore ks = KeyStore.getInstance("JKS"); ks.load(new FileInputStream(ksName), ksPass);
But I get following message:
herong.jks (No such file or directory)
Name of keysotre is correct. May be I should do something else? now I only create keystore and certificate in key tool.
Joined: Mar 22, 2005
Apr 01, 2014 07:13:04
Try an absolute path instead.
Ping & DNS
- my free Android networking tools app
I agree. Here's the link:
subject: Java keystorage load problem
How To Get HTTPS?
Sign a jar with a third party certificate, using keytool and jarsigner
Tomcat SSL .Enabling Client authentication with tomcat
CertificateException: No name matching <hostname> found.
reading certificate from smart card
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014