Is the rsa-phpopenssl function unavailable?

Source: Internet
Author: User
Tags begin rsa private key
{Code...} phpinfo (); you can see that openssl extensions are installed, but all openssl _ * functions return false,
Extension_loaded ('openssl ') or die ('openssl extension not installed '); $ pukey = '----- begin public key ----- %756snyzjcpf2sbfuqxi8u/TFY72y5U4EdbgQMF + %/ I %+ %58q%h + FI1D48kTNwIDAQAB ----- END PUBLIC KEY -----'; $ pikey = '----- begin rsa private key ----- encrypt/TF encrypt + encrypt/decrypt od0LzdLTLg + encrypt + FI1D48kTNwIDAQAB AoGBAJFLySMdRPr + average Wi/decrypt 5kW encrypt + 1k7L + znRcU3k/a +/ optional values/pL 3XiT8zkl5UdNJ/Optional values + 2 ieDsxYyeijrokCQQCg values/J4oBa8Do values + required pRQh1Igfmm90d + values/Kvb737VRKLlJ6A = ----- end rsa private key -----'; var_dump (openssl_pkey_get_private ($ pikey); var_dump (openssl_pkey_get_public ($ pukey ));

Phpinfo (); you can see that the openssl extension is installed.
However, all openssl _ * functions return false,

Reply content:
Extension_loaded ('openssl ') or die ('openssl extension not installed '); $ pukey = '----- begin public key ----- %756snyzjcpf2sbfuqxi8u/TFY72y5U4EdbgQMF + %/ I %+ %58q%h + FI1D48kTNwIDAQAB ----- END PUBLIC KEY -----'; $ pikey = '----- begin rsa private key ----- encrypt/TF encrypt + encrypt/decrypt od0LzdLTLg + encrypt + FI1D48kTNwIDAQAB AoGBAJFLySMdRPr + average Wi/decrypt 5kW encrypt + 1k7L + znRcU3k/a +/ optional values/pL 3XiT8zkl5UdNJ/Optional values + 2 ieDsxYyeijrokCQQCg values/J4oBa8Do values + required pRQh1Igfmm90d + values/Kvb737VRKLlJ6A = ----- end rsa private key -----'; var_dump (openssl_pkey_get_private ($ pikey); var_dump (openssl_pkey_get_public ($ pukey ));

Phpinfo (); you can see that the openssl extension is installed.
However, all openssl _ * functions return false,

Try this command.

php -m|grep openssl

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.