Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

Sponsored Links

Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs

Build secure network applications with SSL and the JSSE API

Get started with SSL and JSSE using these two simple apps

  • Print
  • Feedback

Page 6 of 6

  java -Djavax.net.ssl.trustStore=foobar -Djavax.net.ssl.trustStorePassword=foobar EchoClient


To keep the setup simple, foobar functions as both the keystore and the truststore.

If you'd really like to have some fun, run these two applications with the SSL debug flag turned on, as you did in the introduction.

Conclusion

This month I introduced SSL and Sun's JSSE API, which implements SSL for Java. I also provided two simple applications that will help you start developing. With SSL and JSSE, your Java applications can be both secure and simple.

The JSSE specification and associated reference implementation are still rough around the edges, but they will improve with time. For now, the information and examples above should get you started with SSL and JSSE.

About the author

Todd Sundsted has been writing programs since computers became available in desktop models. Though originally interested in building distributed applications in C++, Todd moved on to the Java programming language when it became the obvious choice for that sort of thing. In addition to writing, Todd is the cofounder and chief architect of PointFire.

Read more about Tools & Methods in JavaWorld's Tools & Methods section.

  • Print
  • Feedback

Resources