Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help using OpenSSL in JAVA

Status
Not open for further replies.

BuilderSpec

Programmer
Dec 24, 2003
383
GB
Hi

Been handed a project that I am not sure about as not an expert in JAVA at all.

We have a JAVA application that currently uses security certifcates to open a website. Basically the application is installed on client and when it is run it opens our website and performs whetever it needs using http calls.

The certificate is changing and I am now told that the code needs to re-written to support new certificate and that standard Open SSL should be ok.

Have tried but to no avail.

Does anyone know of any site with example code or know how to do this ?

A simple cut down version would be a JAVA program that opens our website with no errors etc.

Can anyone help me or point me please ?

Thanks in advance



Hope this helps!

Regards

BuilderSpec
 
Hi Builder,

Can you give a little more info on your problem? Is this a server side or client side certificate you are dealing with and what format are the certificates in? i.e. have you generated them yourself or received them from a signing authority?

There is some example code dealing with the standard SSL classes available here:
There are examples to show simple HTTPS access and also mutual authentication with client certificates. How simple all this is sometimes depends on how you generate the certificates. If they are signed by an authority with a valid certificate in the JRE and you don't have client certs, then it will probably be very easy. But if you are generating them with the java keytool, then you will need to install the public certificates in the trust store of the client or server.

Cheers,
Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top