Login   Register  
PHP Classes
elePHPant
Icontem

openssl_csr_sign() cannot get CSR from parameter 1

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Crypt_OpenSSL  >  All threads  >  openssl_csr_sign() cannot get CSR from parameter 1  >  (Un) Subscribe thread alerts  
Subject:openssl_csr_sign() cannot get CSR from parameter 1
Summary:FIXED
Messages:1
Author:Ignatius Teo
Date:2010-07-21 05:30:48
 

  1. openssl_csr_sign() cannot get CSR from parameter 1   Reply  
Picture of Ignatius Teo
Ignatius Teo
2010-07-21 05:30:48
If you get the following error:

openssl_csr_sign() cannot get CSR from parameter 1

... it's because the path to the openssl.cnf is wrong.

In OpenSSL.php, change the "config" value in the public declaration of Crypt_OpenSSL::$sslConfig

i.e.

public $sslConfig = array(
...
"config" => "/etc/pki/tls/openssl.cnf" // <-- point this to YOUR openssl.cnf
);