basit arada benim özel anahtarı yüklemeye çalışırken aşağıdaki hatayı alıyorum üzerinde PHP ile sistem lib. Bu benim kodum.Hata 0x2006D002: BIO rutinleri: BIO_new_file: Windows'un
public function loadPrivateKey($fileName, $password = null){
if(!is_file($fileName))
throw new SignException('Private key not found', SignException::KEY_NOT_FOUND);
$fileContent = file_get_contents($fileName);
if(!is_null($password))
$this->prvKey = openssl_get_privatekey($fileContent, $password);
else
$this->prvKey = openssl_get_privatekey($fileContent);
if(!empty(openssl_error_string()))
throw new SignException('OpenSSL Error: '.openssl_error_string());
if(!is_resource($this->prvKey))
throw new SignException('Private key is not resourse', SignException::EXTERNAL_ERROR);
}
openssl_error_string()
döner error:2006D002:BIO routines:BIO_new_file:system lib
.
extension=php_openssl.dll
ile benim
php.ini
yılında OpenSSL'i sağladı.
Sorun ne olabilir? Nasıl düzeltebilirim?
Teşekkür ederiz!
Olası yinelenen (http://stackoverflow.com/questions/15558321/openssl-not-working-on-windows). – jww
Ayrıca bkz. [OpenSSL ve openssl.conf dosyasını okuma hatası] (http://stackoverflow.com/a/11241669/608639). – jww