Re: the function openssl_get_publickey() 's result is diferrent in php 7 and php5. 6.16 and php5.5.12 ???? so what is wrong?????
| From: | Frank Arensmeier | Date: | Wed, 16 Mar 2016 10:57:29 +0000 |
| Subject: | Re: the function openssl_get_publickey() 's result is diferrent in php 7 and php5. 6.16 and php5.5.12 ???? so what is wrong????? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-325472@lists.php.net to get a copy of this message | ||
> 16 mar 2016 kl. 11:50 skrev v-LeonHou <764436364@qq.com>:
>
> yeah i have read that before ,but i am using the X.509 style public key ........
>
> > 16 mar 2016 kl. 11:29 skrev v-LeonHou <764436364@qq.com>:
> >
> > hi everyone,
> >
> > today i meet a strange while the function openssl_get_publickey() runs well in php 7
> > while report an error in php5. 6.16 and php5.5.12
> >
> Hi.
>
> What type of public key are you using? The OpenSSL implementation seems to have some issues
> with PKCS#1 RSA public keys. Please read the user comment about openssl_get_publickey about this
> issue (http://php.net/manual/en/function.openssl-pkey-get-public.php#101513).
>
> I strongly suggest to have a look at the error message from OpenSSL (openssl_error_string).
>
> /frank
Please don’t top post. That makes it hard for others to follow this conversation.
Do you get any error messages from OpenSSL?
/frank