R: PEM_read_bio: no start line
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 for the Ca file and not for server certificate. The function that is called to load certificate in openssl structures is the same, that is PEM_read_bio. So if someone had an idea... is there someone that knows a document (not RFC) about PEM format, above all about Header PEM for certificates, keys, Ca, CRL etc... Thanks All Maddalena Da: [EMAIL PROTECTED] per conto di Matyas Majzik Inviato: ven 20/05/2005 13.21 A: openssl-users@openssl.org Oggetto: Re: PEM_read_bio: no start line Hi All, someone knows what does mean : PEM_read_bio: no start line when server calls the function (for CA file) :SSL_CTX_load_verify_locations() ? I'm using openssl-0.9.7d I think that CA certificate file is not in PEM file format. Therefore I think that there is no -BEGIN CERTIFICATE- line in that file. Matyas __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] winmail.dat
PEM_read_bio: no start line
Da: Pulcini Maddalena Inviato: ven 20/05/2005 13.05 A: openssl-users@openssl.org Oggetto: Hi All, someone knows what does mean : PEM_read_bio: no start line when server calls the function (for CA file) :SSL_CTX_load_verify_locations() ? I'm using openssl-0.9.7d ThanksRegards Maddalena __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]
Re: PEM_read_bio: no start line
Hi All, someone knows what does mean : PEM_read_bio: no start line when server calls the function (for CA file) :SSL_CTX_load_verify_locations() ? I'm using openssl-0.9.7d I think that CA certificate file is not in PEM file format. Therefore I think that there is no -BEGIN CERTIFICATE- line in that file. Matyas __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]
RE: Pem_read_bio -.... expecting certificate.
Having tried my code with various other certs that came with openssl, I have to say that the problem is in my code. All certs give the same error. The only time i get a different error is if I remove the cert or physically alter the certificate header. Does SSL expect CA Cert to be in PEM format by default or do I need to tell it somewhere. any idea what I could be overlooking. any other information I should be giving? Hylton -Original Message- From: Hylton Tregenza Sent: 17 October 2001 04:32 To: [EMAIL PROTECTED] Subject: Pem_read_bio - expecting certificate. Hi all I have looked in the archives but not found an examale or assistance there. I am having difficulty with a CA certificate (created with ./CA -newca) I am getting the following error 1895:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:662:Expecting: CERTIFICATE. The certificate is included bellow. I can find nothing wrong with it. -BEGIN CERTIFICATE- MIIC4zCCAkygAwIBAgIBADANBgkqhkiG9w0BAQQFADBbMQswCQYDVQQGEwJaQTEK MAgGA1UECBMBQTEKMAgGA1UEBxMBQTEKMAgGA1UEChMBQTEKMAgGA1UECxMBQTEK MAgGA1UEAxMBQTEQMA4GCSqGSIb3DQEJARYBQTAeFw0wMTEwMTYxMzQ4MTVaFw0w MjEwMTYxMzQ4MTVaMFsxCzAJBgNVBAYTAlpBMQowCAYDVQQIEwFBMQowCAYDVQQH EwFBMQowCAYDVQQKEwFBMQowCAYDVQQLEwFBMQowCAYDVQQDEwFBMRAwDgYJKoZI hvcNAQkBFgFBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDKcM9jJufpvGm CSMIuDIrmqzPn34F18KdDLn5FZ3JZCLEvVSK0g3dmtYkI3aa45QDEEZnH2uEq309 o2pHgmcMO1/jOhIzSe9QZoTYNNhaqtgxkRbukt8SIZlz2McVXEjO7Ne65hmOKtk0 d5Q1TQMm+On8r0QDOinzniUMeG+KuwIDAQABo4G2MIGzMB0GA1UdDgQWBBRuB42r x2+tzhQvQjcsTqviN/63uTCBgwYDVR0jBHwweoAUbgeNq8dvrc4UL0I3LE6r4jf+ t7mhX6RdMFsxCzAJBgNVBAYTAlpBMQowCAYDVQQIEwFBMQowCAYDVQQHEwFBMQow CAYDVQQKEwFBMQowCAYDVQQLEwFBMQowCAYDVQQDEwFBMRAwDgYJKoZIhvcNAQkB FgFBggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADgYEACInmVXY+Qs62 QmYRBgnkM8ys8dNnn17UVeHZ3clpP80udnGVWvUivmkJzZbSoiMvXgIlWNuAtGgI Aqz5LPthYy8/VUlurOjWL7xlYTBlDJQa8+c/JliAi/6LNC7oIu2lxN/hA1kbG4Pr qSIBiYNSrJaA4ktpK0bfncqSPGu/BpM= -END CERTIFICATE- openssl reads it correctly. I am doing the following in trying to read it. Please can some one point out my mistake. SSL_load_error_strings(); SSL_library_init(); // actions_to_seed_PRNG(); ERR_load_crypto_strings(); SSLeay_add_ssl_algorithms(); pMETHOD = SSLv3_client_method(); ERR_print_errors_fp(stdout); fflush(stdout); No error here printf(%s\n, CASERVCERTF); fflush(stdout); X509_stack = SSL_load_client_CA_file(CASERVCERTF); ERR_print_errors_fp(stdout); fflush(stdout); error shown here SSL_CTX_set_client_CA_list(pCTX, X509_stack); ERR_print_errors_fp(stdout); fflush(stdout); Thanks guys. I am lost on this one. Hylton __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
PEM_read_bio
Title: Message I am getting an error message , PEM_read_bio: No start line. Now I am assuming this may have to do with the pem certificate im trying to read, but all my certificates are fine. Could anyone give me some insight on what causes this error. Thanks! -Andrew T. FinnellSoftware EngineereSecurity Inc(321) 394-2485
Pem_read_bio -.... expecting certificate.
Hi all I have looked in the archives but not found an examale or assistance there. I am having difficulty with a CA certificate (created with ./CA -newca) I am getting the following error 1895:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:662:Expecting: CERTIFICATE. The certificate is included bellow. I can find nothing wrong with it. -BEGIN CERTIFICATE- MIIC4zCCAkygAwIBAgIBADANBgkqhkiG9w0BAQQFADBbMQswCQYDVQQGEwJaQTEK MAgGA1UECBMBQTEKMAgGA1UEBxMBQTEKMAgGA1UEChMBQTEKMAgGA1UECxMBQTEK MAgGA1UEAxMBQTEQMA4GCSqGSIb3DQEJARYBQTAeFw0wMTEwMTYxMzQ4MTVaFw0w MjEwMTYxMzQ4MTVaMFsxCzAJBgNVBAYTAlpBMQowCAYDVQQIEwFBMQowCAYDVQQH EwFBMQowCAYDVQQKEwFBMQowCAYDVQQLEwFBMQowCAYDVQQDEwFBMRAwDgYJKoZI hvcNAQkBFgFBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDKcM9jJufpvGm CSMIuDIrmqzPn34F18KdDLn5FZ3JZCLEvVSK0g3dmtYkI3aa45QDEEZnH2uEq309 o2pHgmcMO1/jOhIzSe9QZoTYNNhaqtgxkRbukt8SIZlz2McVXEjO7Ne65hmOKtk0 d5Q1TQMm+On8r0QDOinzniUMeG+KuwIDAQABo4G2MIGzMB0GA1UdDgQWBBRuB42r x2+tzhQvQjcsTqviN/63uTCBgwYDVR0jBHwweoAUbgeNq8dvrc4UL0I3LE6r4jf+ t7mhX6RdMFsxCzAJBgNVBAYTAlpBMQowCAYDVQQIEwFBMQowCAYDVQQHEwFBMQow CAYDVQQKEwFBMQowCAYDVQQLEwFBMQowCAYDVQQDEwFBMRAwDgYJKoZIhvcNAQkB FgFBggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADgYEACInmVXY+Qs62 QmYRBgnkM8ys8dNnn17UVeHZ3clpP80udnGVWvUivmkJzZbSoiMvXgIlWNuAtGgI Aqz5LPthYy8/VUlurOjWL7xlYTBlDJQa8+c/JliAi/6LNC7oIu2lxN/hA1kbG4Pr qSIBiYNSrJaA4ktpK0bfncqSPGu/BpM= -END CERTIFICATE- openssl reads it correctly. I am doing the following in trying to read it. Please can some one point out my mistake. SSL_load_error_strings(); SSL_library_init(); // actions_to_seed_PRNG(); ERR_load_crypto_strings(); SSLeay_add_ssl_algorithms(); pMETHOD = SSLv3_client_method(); ERR_print_errors_fp(stdout); fflush(stdout); No error here printf(%s\n, CASERVCERTF); fflush(stdout); X509_stack = SSL_load_client_CA_file(CASERVCERTF); ERR_print_errors_fp(stdout); fflush(stdout); error shown here SSL_CTX_set_client_CA_list(pCTX, X509_stack); ERR_print_errors_fp(stdout); fflush(stdout); Thanks guys. I am lost on this one. Hylton __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
RE: PEM_read_bio
Title: Message I am having the same problem. If I find anything I will let you know -Original Message-From: Andrew Finnell [mailto:[EMAIL PROTECTED]]Sent: 17 October 2001 04:11To: 'Openssl ([EMAIL PROTECTED])'Subject: PEM_read_bio I am getting an error message , PEM_read_bio: No start line. Now I am assuming this may have to do with the pem certificate im trying to read, but all my certificates are fine. Could anyone give me some insight on what causes this error. Thanks! -Andrew T. FinnellSoftware EngineereSecurity Inc(321) 394-2485