how to use client side certifcates?

N

Naresh Agarwal

Hi

I'm writing HTTPS client using JDK. I want to perform client side authentication.

1) How can I enable client side authentication in JDK?
2) How should I tell JDK about the client side certificate?

thanks,
Naresh
 
C

Christopher Dean

Naresh said:
Hi

I'm writing HTTPS client using JDK. I want to perform client side authentication.

1) How can I enable client side authentication in JDK?
2) How should I tell JDK about the client side certificate?

thanks,
Naresh

1) SSLServerSocket method setNeedClientAuth(true);
2) Install your certificate in the JDK's cacerts using keytool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top