openssl_pkcs7_verify and php

Dear All,

I am using php 5, apache server and windows OS.
i had openssl installed but it kept giving me these errors !!!

error:02001003:system library:fopen:No such process
error:2006D080:BIO routines:BIO_new_file:no such file
error:0B084002:x509 certificate
routines:X509_load_cert_crl_file:system lib
error:0B065068:x509 certificate routines:BY_FILE_CTRL:loading defaults
error:020010CE:system library:fopen:reason(206)
error:2006D080:BIO routines:BIO_new_file:no such file

now that i tried to reinstall openssl things are not really working
fine
the question is since i am a newbi with all that i cant fgure out how
i can reinstall the openssl .. i have ben tying to follow the
nstructions on php.net but no success.

here is the code i am using in php
<? $result= openssl_pkcs7_verify("thefile.p7m", PKCS7_NOSIGS);
echo "$result<br/>";
while ($msg = openssl_error_string())
echo $msg . "
\n"; ?>
Noha.H.Hassan [ Do, 12 April 2007 11:44 ] [ ID #1685801 ]

Re: openssl_pkcs7_verify and php

<Noha.H.Hassan [at] gmail.com> wrote in message
news:1176371046.126958.165630 [at] b75g2000hsg.googlegroups.com.. .
> Dear All,
>
> I am using php 5, apache server and windows OS.
> i had openssl installed but it kept giving me these errors !!!
>
> error:02001003:system library:fopen:No such process
> error:2006D080:BIO routines:BIO_new_file:no such file
> error:0B084002:x509 certificate
> routines:X509_load_cert_crl_file:system lib
> error:0B065068:x509 certificate routines:BY_FILE_CTRL:loading defaults
> error:020010CE:system library:fopen:reason(206)
> error:2006D080:BIO routines:BIO_new_file:no such file
>

Could be a certificate problem.
Is the certificate path correct? Are you using the original certificate
provided by the instalation, or have you tried using another?

Vince
Vince Morgan [ Do, 12 April 2007 13:06 ] [ ID #1685806 ]

Re: openssl_pkcs7_verify and php

<Noha.H.Hassan [at] gmail.com> wrote in message
news:1176371046.126958.165630 [at] b75g2000hsg.googlegroups.com.. .
> Dear All,
>
> I am using php 5, apache server and windows OS.
> i had openssl installed but it kept giving me these errors !!!
>
> error:02001003:system library:fopen:No such process
> error:2006D080:BIO routines:BIO_new_file:no such file
> error:0B084002:x509 certificate
> routines:X509_load_cert_crl_file:system lib
> error:0B065068:x509 certificate routines:BY_FILE_CTRL:loading defaults
> error:020010CE:system library:fopen:reason(206)
> error:2006D080:BIO routines:BIO_new_file:no such file
>
> now that i tried to reinstall openssl things are not really working
> fine
> the question is since i am a newbi with all that i cant fgure out how
> i can reinstall the openssl .. i have ben tying to follow the
> nstructions on php.net but no success.
>
> here is the code i am using in php
> <? $result= openssl_pkcs7_verify("thefile.p7m", PKCS7_NOSIGS);
> echo "$result<br/>";
> while ($msg = openssl_error_string())
> echo $msg . "
\n"; ?>
>

Have you run genrsa yet?

Vince
Vince Morgan [ Do, 12 April 2007 13:28 ] [ ID #1685807 ]

Re: openssl_pkcs7_verify and php

On 12 Apr, 13:06, "Vince Morgan" <vin... [at] REMOVEoptusnet.com.au> wrote:
> <Noha.H.Has... [at] gmail.com> wrote in message
>
> news:1176371046.126958.165630 [at] b75g2000hsg.googlegroups.com.. .
>
> > Dear All,
>
> > I am using php 5, apache server and windows OS.
> > i had openssl installed but it kept giving me these errors !!!
>
> > error:02001003:system library:fopen:No such process
> > error:2006D080:BIO routines:BIO_new_file:no such file
> > error:0B084002:x509 certificate
> > routines:X509_load_cert_crl_file:system lib
> > error:0B065068:x509 certificate routines:BY_FILE_CTRL:loading defaults
> > error:020010CE:system library:fopen:reason(206)
> > error:2006D080:BIO routines:BIO_new_file:no such file
>
> Could be a certificate problem.
> Is the certificate path correct? Are you using the original certificate
> provided by the instalation, or have you tried using another?
>
> Vince

Hi Vince,
thanks for your interest anyway as you can see from the code actually
i shouldnot be verifiyign any certificates or the signature
compatibility with the certificate that is why i used the flags
nosig . what i am trying to do is to veryify the format of the p7m
file and to check if tehre is a signature that is it i dont need to
verify the signature nor the certificate....according to the manual i
can do it but no sucess what so ever:(
thx
Noha
Noha.H.Hassan [ Mo, 16 April 2007 17:28 ] [ ID #1689116 ]
PHP » alt.php » openssl_pkcs7_verify and php

Vorheriges Thema: PHP newbie question
Nächstes Thema: Possible improvement?