Runing JSSEClient
The JSSEClient sample application initializes the JSSE security provider of the toolkit for client authentication and data transmission.
To run this sample application, execute the following command line in the etjava/examples directory.
java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.jsse.JSSEClient <epf_file> <epf_pwd> <ca_ip> <ca_port>|
Parameter |
Value |
|
<epf_file> |
The path of an Entrust user profile in .epf file format. |
|
<epf_pwd> |
The password for accessing the Entrust profile. |
|
<ca_ip> |
The hostname or IP address of an Entrust Certification Authority. |
|
<ca_port> |
The port for accessing the Entrust Certification Authority. |
For example:
C:\etjava\examples>java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.jsse.JSSEClient data/userdata/RSAUser1.epf ~Sample7~ localhost 443SSL/TLS provider: SunJSSE version 11HTTP/1.0 200 OKContent-Type: text/htmlServer: MyJsseServerDate: Thu, 21 Mar 2024 19:36:33 GMT<HTML><HEAD><TITLE>SSL Test</TITLE></HEAD><BODY><H1>Success!</H1>Your request was received on <b>Thu Mar 21 15:36:33 EDT 2024</b> using ciphersuite <b>TLS_AES_128_GCM_SHA256</b><P>Your request was:<BLOCKQUOTE><PRE>GET / HTTP/1.0</PRE></BLOCKQUOTE></P></BODY></HTML>Done.