Solved

Server Cert

Posted on 2002-07-10
5
193 Views
Last Modified: 2010-03-31
I have written a function to connect to secure server and will use server certificate if needed. I wanna know is there any public secure site (using server cert) which will allow me to test out my function? Thanks
**Urgent**
0
Comment
Question by:cHEo
5 Comments
 
LVL 3

Accepted Solution

by:
msterjev earned 50 total points
ID: 7145580
Go to the:

https://www.verisign.com


If you are using raw Sockets then use:

Socket socket=new Socket("www.verisign.com",443)

but, this way you must write the whole handshake protocol!
0
 

Author Comment

by:cHEo
ID: 7145640
Can you give me the sample of code, on building connection and specifying the usage of server certificate?
0
 
LVL 3

Expert Comment

by:msterjev
ID: 7145807
If you are using Java 1.4 there is already present JSSE (Java Secure Socket Extension). If you are using some version bellow, you need to install JSSE from java.sun.com.
There are a lot of examples in JSSE Developers Guide,with full explanation and sample codes.

In both cases, you should download JSSE Reference Guide for explanation of using Secure Socket Layer in Java.
Download it from:
http://java.sun.com/j2se/1.4/docs/guide/security/jsse/JSSERefGuide.html
0
 
LVL 5

Expert Comment

by:vemul
ID: 7887936
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- points to msterjev

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

vemul
Cleanup Volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7959658
Comment from expert accepted as answer

Computer101
E-E Admin
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now