私はすでにすべてを試しました....しかし動作しません!私はlibeay32.dllとssleay32.dllをSystem32のwindowsフォルダに入れました。そして、php.iniのphp_openssl.dll拡張を有効にしました。 、多少の誤差が発生するマイのOpenSSLのバージョンは1.0.0である誰もが私を助けることができるxampp(Windows)でOpenSSL拡張機能を使用するには何が必要ですか? :(
コード:。。?
$configargs = array(
'config' => 'openssl.cnf',
'digest_alg' => 'md5',
'x509_extensions' => 'v3_ca',
'req_extensions' => 'v3_req',
'private_key_bits' => 666,
'private_key_type' => OPENSSL_KEYTYPE_RSA,
'encrypt_key' => false,
);
$dn = array(
"countryName" => "DE",
"stateOrProvinceName" => "wubbla wubbla",
"localityName" => "wubbla",
"organizationName" => "Internet Widgits Pty Ltd",
"organizationalUnitName" => "Organizational Unit Name",
"commonName" => "example.com",
"emailAddress" => "Email Address"
);
$csr = openssl_csr_new($dn, $privkey, $configargs);
// Show any errors that occurred here
while (($e = openssl_error_string()) !== false) {
echo $e . "\n";
}
エラー:
error:02001003:system library:fopen:No such process
error:2006D080:BIO routines:BIO_new_file:no such file
error:0E064002:configuration file routines:CONF_load:system lib
error:02001002:system library:fopen:No such file or directory
error:2006D080:BIO routines:BIO_new_file:no such file
error:0E064002:configuration file routines:CONF_load:system lib
php.iniを変更した後にApacheを再起動しようとしましたか? –
はい!私はこれを試した! –