# Setting server certificate

John Sullivan (john@webscope3d.com)
Tue, 10 Aug 1999 16:47:07 -0700

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: David Taylor: "JSSE API?"
- Previous message: John Sullivan: "JSSE client socket example"

    Date: Tue, 10 Aug 1999 16:47:07 -0700

    From: John Sullivan <john@webscope3d.com>

    To: java-security@Sun.COM

    Subject: Setting server certificate

Whats the easiest way to set the X-509 certificate for
the SSLServerSocket in the JSSE.

The furthest I got is, that it seems you must create a keystore
with the X-509 certificate, and call init the KeyManagerFactory
with that keystore.

My problem is getting a handle to the keyManagerFactory.
keyManagerFactory has a getInstance( ), but it
takes an algorithm as a parameter? What would
be the easiest way to just get the default KeyManagerFactory?

John Sullivan - Webscope

PS Similarly it would seem you use the TrustManagerFactory,
to set up the certificate chain for the certificate authorities.

- Next message: David Taylor: "JSSE API?"
- Previous message: John Sullivan: "JSSE client socket example"