PFX証明書の暗号化

サイン機能(データ$、$ pfxpathは、$をpfxpwd){
      $本命=配列();
     openssl_pkcs12_read(のfile_get_contents($ pfxpath)、$、$ pfxpwd CERTS); //パスを特徴とパスワードのためのpfxpath証明書、証明書のパスワード
     の場合( !$本命){
           リターン;
    }
    $ =署名'';
    [PKEY '])openssl_sign(データ$、$署名は、$を本命';
   BASE64_ENCODE($署名)を返します;
}

おすすめ

転載: www.cnblogs.com/wangguizhong/p/11981432.html