This is code in java for validate certificate..........but.......it appears
one error
public void check(Certificate cert) //throws CertPathValidatorExcept
ion
{
X509Certificate xcert = (X509Certificate) cert;
byte[] ext = xcert.getExtensionValue("2.5.29.17");
if (ext == null) return;
}
this code is call from php.
$clase = new Java('pruebaOID');
print 'ojala resulte='.$clase->check(getenv("SSL_CLIENT_CERT"));
-----Mensaje original-----
De: JM [mailto:[EMAIL PROTECTED]]
Enviado el: Monday, May 20, 2002 4:30 PM
Para: [EMAIL PROTECTED]
Asunto: Re: Help!!!
certificate.verify("one");
I hope that helps.
JM
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Tapia
> Marcelo
> Sent: Monday, May 20, 2002 4:28 PM
> To: [EMAIL PROTECTED]
> Subject: Help!!!
> Importance: High
>
>
> hi.......my english is not wery good.......but.............How I
> can verify
> one certificate in Java?
>
> Thanks,
> Marcelo
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html