R: PEM_read_bio: no start line

2005-05-23 Thread Pulcini Maddalena
Hi, the problem is not the file's format; I also tried with a test ca file, including in the openssl files (files for test) and the problem occurs in the same way. I generated a self signed Ca with openssl for windows and I obtained the same problem. I can't understand why the problem is only fo

Crash at SSL_accept

2005-05-23 Thread Nauman Akbar
Dear Users   I am having this problem for a long time. Initially I thought it was an issue with configuration of multi-threading but the problem seems to remain with multi-threading removed.   I have developed a simple ssl based multi-threaded server application. Previously, openssl dat

Re: simple question again

2005-05-23 Thread alok
Joshua Juran wrote: On May 19, 2005, at 4:03 PM, Miles Bradford wrote: So when you send the CSR including the Public Key - you would send them the (your) Private Key, also? Then they sign it with a Private Key they've created? and send it back? You don't give away your private key to anybo

Get Serial number from a cert

2005-05-23 Thread Angel Martinez Gonzalez
Hello: I want to get the serial number from a certificate. I use this function: X509_get_serialNumber(). This function returns a ASN1_INTEGER struct, with the field length, type, data and flag. I suppose that the serial number is stored in the data field of the struct. But I can´t get it. My co

Re: Get Serial number from a cert

2005-05-23 Thread Marco Roeland
On Monday May 23rd 2005 Angel Martinez Gonzalez wrote: > I want to get the serial number from a certificate. > > ... > > FILE *fp; > X509 *cert; > int serialNumber; > ASN1_INTEGER *bs; > > if (!(fp = fopen(CERTIFICADO_TTP, "r"))) > printf ("Error\n"); > > if (!(cert = PEM_read_X509(fp,

Re: Questions on threading

2005-05-23 Thread Steven Bade
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken Goldman wrote: | Referring to http://www.openssl.org/docs/crypto/threads.html | | 1 | | "id_function(void) is a function that returns a thread ID. It is not | needed on Windows nor on platforms where getpid() returns a different | ID for each thre

EVP API for SHA-1 Error

2005-05-23 Thread Rafael Cividanes
Hi, When I use EVP API in Borland Builder 5.0 the EVP_sha1( ) argument is not found and an error result. EVP_md5() argument works properly. When using Microsoft Visual C++ both work. Using SHA1 API in Borland Builder works too. The problem is that Builder does not recognize EVP_sha1( ) pa

Re: Getting Cisco 3kvpn to accept openssl signed certs - anyone done it?

2005-05-23 Thread ray v
Yes, first thing I did was install the CA root certificate and the sub CA certificate which signs the cert reqs from the 3000. Cisco got back to me and are now telling me that it might be a problem with the code version I have loaded up on my 3k. Once I get it updated I'll try again to see if ther

SSL_read confusion

2005-05-23 Thread Carlos Roberto Zainos H
Hi guys!   I have some doubts in SSL functions, specially in  SSL_read function.   I'm trying to write an HTTPS generic client (POST and GET methods must be availables), I've written the code for connection via win sockets (blocking socket) and used the next code for the SSL handshake:   if ((ctx =

DES crash in 64 bits...

2005-05-23 Thread Y.H
I'm compilied OpenSSL in 64-bit mode (both on SunOS and HP-UX). For some reason whenever I use the DES algorithm (and any other DES-based algorithms) – my code crashes. I simply don't know what's wrong and I couldn't find any reference to a similar problem.   I would greatly appreciate

RE: SSL_read confusion

2005-05-23 Thread David Schwartz
> sprintf(head,"GET /index.html HTTP/1.1 \t\n\t"); That should be "GET /index.html HTTP/1.1\r\nHost: \r\n\r\n". For an HTTP/1.1 request, a 'Host' header is required. You also have to handle chunked encoding if you claim 1.1 compliance. > memset(read, 0, sizeof(read)); > res = SSL_read (

[ANNOUNCE] OpenSSL 0.9.8 beta 2 released

2005-05-23 Thread Richard Levitte - VMS Whacker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 OpenSSL version 0.9.8 Beta 2 OpenSSL - The Open Source toolkit for SSL/TLS http://www.openssl.org/ OpenSSL is currently in a release cycle. The second beta is now released. The beta release is available for

Cryptography Message Syntax Vs PKCS #7

2005-05-23 Thread Madhu Sudhan Reddy
Hello All,       I am very new to this group. Looking for help from this expert group.   Will the DER encoded PKCS #7 signed data matches with the DER encoded CMS signed data?   If not, can you please explain the reason?   Thanking you……   Ma