Re: PostgreSQL + SSL - sun.security.validator.ValidatorException

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: PostgreSQL + SSL - sun.security.validator.ValidatorException
Дата
Msg-id Pine.BSO.4.56.0412110318350.27632@leary.csoft.net
обсуждение исходный текст
Ответ на PostgreSQL + SSL - sun.security.validator.ValidatorException  (Andrew M <andrew@jibeya.com>)
Список pgsql-jdbc

On Sat, 11 Dec 2004, John R Pierce wrote:

> > It uses specific files relative to the user's $HOME directory.  I don't
> > think this translates well into Java and I'm unsure what code would be
> > needed on the driver side to set this up.  It would be great if someone
> > more Java+SSL knowledgeable could point us in the right direction here.
>
> if the jdbc driver is using J2SE 1.4 style SecureSockets, then the
> certificate store is in ${JAVA_HOME}/lib/security
> (%JAVA_HOME%\lib\security on Windows)
>
> there is a keytool command in J2SE to manipuate and generate these keys.
> http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/keytool.html
>

Right, we know how to handle verifying the server certificate against the
client keystore, that's pretty much all handled by java's SSL
implementation.  The question is how do you do the reverse, providing the
client certificate to the server.  For validating the server's cert java
can just loop through all available certs in the keystore and see if any
of them match.  For sending a client cert on to the server there must be
some means of selecting one particular cert you want to send.

Kris Jurka

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Java Studio Creator Fix/Hack
Следующее
От: John R Pierce
Дата:
Сообщение: Re: PostgreSQL + SSL - sun.security.validator.ValidatorException