de.tu_darmstadt.sp.example
Class SSLClient
java.lang.Object
|
+--de.tu_darmstadt.sp.example.SSLClient
- public class SSLClient
- extends java.lang.Object
Class SSLClient is a an example on how to set up an SSLeay socket and
communicate with a server socket.
SSLClient
expects 3 arguments: the host and port on
which the server socket listens and a message to send to the server socket.
The specified message will be sent to the server..
The program expects ca file, cert and key file to be specified, either via
properties or using environment variables.
Using this information and the commandline arguments, a conenction is established
to a SSLeayServerSocket. All available information about this connection is than
displayed.
- Version:
- $Revision: 1.5 $
- Author:
- Andrei Popovici
Method Summary |
static void |
main(java.lang.String[] args)
Start a connection to host:port, using p1.cert.pem p1.privkey.pem and cacert.pem
as security information and send a message to the server socket. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SSLClient
public SSLClient()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Start a connection to host:port, using p1.cert.pem p1.privkey.pem and cacert.pem
as security information and send a message to the server socket.
Usage: sslclient host port message