It is a proper file created by openssl and it reads in properly in openssl by the very
same routine that fails to read it in serv.cpp
The failure message right down to the line number appears to be identical to what
happens when I stuff a bad file into the
apps... but when I stuff what I think is a good file - then openssl reads it but serv
fails.
The cert file I'm using is attached. Pass phrase is "Terrell Larson"
Thanx.
On Mon, 11 Oct 1999 16:03:10 -0400, Mordy Ovits wrote:
>
>Make sure that the file has proper CRLF. Make sure the first line has
>the canonical ----
>BEGIN.. etc. ----
>--
>o Mordy Ovits
>o Cryptographic Engineer
>o LockStar, Inc.
>Terrell Larson wrote:
>>
>> I'm trying to get the minimal client and server code running. It is found in
>openssl-0.9.4/demos/ssl under the names of cli.cpp
>> and serv.cpp.
>>
>> I've got the code compiled and linked, furthermore the cli.cpp code does seem to
>work.
>>
>> Here's where I'm runnign into a problem.
>>
>> With serv.cpp we need a certificate in file: foo-cert.pem
>>
>> I attempted to create a certificate manually using the procedure outlined in chap
>#6 (howto section) of www.mod_ssl.org. All
>> seems to have gone smoothly and the command:
>>
>> openssl x509 -noout -text -in foo-cert.pem
>>
>> seems to work just fine and dumps the proper data.
>>
>> However, serv run against this file fails with the following mesage:
>>
>> 11778:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:610:
>>
>> Now - if I point foo-cert.pem to a known bad file and rerun openssl, I get the same
>error message. This tells me I think that
>> opennssl and serv are in fact linked into the same libraries and should be
>functioning in a consistant fashion when reading in
>> the certificate. However - they seem to be not doing this.
>>
>--
>There are two kinds of fool; One who says "This is old
>and therefore bad," and one who says "This is new and
>therefore better." -- John Brunner
FOO-CERT.PEM