error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

2006-09-13 Thread David Fix
Hey guys. :) I'm getting an error with PHP 5.1.6 that I've compiled against OpenSSL 0.9.8c... Here's the code. Pretty simple: However, I get the following error: Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:

Importing RSA Public Key generated by JRE

2006-09-13 Thread Hon.Hwang
Hi all, I am attempting to import a RSA Public Key file generated by JRE 5.0 using OpenSSL. As I understand it, JRE's RSA Public Key is in X.509's SubjectPublicKeyInfo structure. I saved the byte array returned by JRE's RSAPublicKey.getEncoded() into a file. Now I like to import this byte a

RE: Reading in memory DER using BIO

2006-09-13 Thread David Schwartz
> So my question is How do i read a DER using a BIO cause the cert in is > memory and not in a file (for file i know there are d2i functions that > return X509). There are d2i functions that take memory pointers and there are d2i functions that take a BIO. See http://www.openssl.org/docs/

Reading in memory DER using BIO

2006-09-13 Thread k b
Is there a way that i can get an X509 cert from an array holding a cert in DER format. I know to read PEM format cert you got to do the following. static X509 *loadCertFromMem(char *pCert, int pLength) { STACK_OF(X509_INFO) *sk = NULL; X509*returnCert = NULL; BIO

Re: Attribute Certificate with OpenSSL?

2006-09-13 Thread Saurabh Arora
On 9/14/06, Mouse <[EMAIL PROTECTED]> wrote: Did anybody use OpenSSL successfully for creating and processing Attribute Certificates? very much .. chek dis link.. http://openpmi.sourceforge.net/ Is there any helpful HOWTO or TFM? download openssl distro(patched to support AC) frm d same li

Attribute Certificate with OpenSSL?

2006-09-13 Thread Mouse
Did anybody use OpenSSL successfully for creating and processing Attribute Certificates? Is there any helpful HOWTO or TFM? __ OpenSSL Project http://www.openssl.org User Support Mailing List

Re: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

2006-09-13 Thread Marek Marcola
Hello, > Hey guys. :) > > I'm getting an error with PHP 5.1.6 that I've compiled against OpenSSL > 0.9.8c... > > Here's the code. Pretty simple: > > $mysock = fsockopen("tls://smtp.gmail.com", 587, $errno, $errstr, 30); > ?> > > However, I get the following error: > > > Warning: fsocko

error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

2006-09-13 Thread David Fix
Hey guys. :) I'm getting an error with PHP 5.1.6 that I've compiled against OpenSSL 0.9.8c... Here's the code. Pretty simple: However, I get the following error: Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:

Need help with certs for Cisco "EasyVPN"

2006-09-13 Thread John A. Kilpatrick
I really could use some help and I'm hoping someone out there has done what I need to do before and can clue me in. All I am trying to do is use certificates with a VPN profile in the Cisco VPN client. However any cert that I sign with OpenSSL is marked as an "RA" cert by the Cisco VPN clie