I am trying to have a java 1.5 client connect to a OpenSSL TLS server. I
can connect fine from other OpenSSL implementations. 

I keep getting a version number error. Digging into the source, I see
that the SSL version>>8 was 98 when it expected 3. I'm looking at static
int s3_pkt.c: ssl3_get_record(SSL *s)

Which gets version from:
                /* Pull apart the header into the SSL3_RECORD */
                rr->type= *(p++);
                ssl_major= *(p++);
                ssl_minor= *(p++);
                version=(ssl_major<<8)|ssl_minor;

I put a printf() in where it does the version that's how I know
version>>8 is 98. 

My command line is:
openssl s_server -www -accept 2762 -tls1 -cert "certs\publicKey.pem"
-key "certs\privateKey.pem"


What is going wrong?

Thanks!
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to