低于php5.5版本不支持openssl_algo_sha256函数,要想使用rsa2加密,把openssl_algo_sha256函数替换为:sha256withrsaencryption

解密方法相同,打开php.ini中open.sll配置,重启服务。