INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Need help using OpenSSL in JAVA

Need help using OpenSSL in JAVA

(OP)
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

RE: Need help using OpenSSL in JAVA

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: http://download.oracle.com/javase/6/docs/technotes/guides/security/jsse/samples/index.html

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close