why do i get bunch of errors? i'm using xampp and i have enabled openssl.
Warning: openssl_csr_export_to_file() expects parameter 1 to be resource, boolean given in E:\xampp\htdocs\nusoap\openssl_demo.php on line 217
Certificate Signing Request as a file: csr_E4kZ8.pem
Warning: openssl_csr_sign() [function.openssl-csr-sign]: cannot get CSR from parameter 1 in E:\xampp\htdocs\nusoap\openssl_demo.php on line 113
Warning: openssl_x509_export() [function.openssl-x509-export]: cannot get cert from parameter 1 in E:\xampp\htdocs\nusoap\openssl_demo.php on line 208
Posted by Jack at October 5, 2010 20:33:54 CEST
I get the same errors as Bugz, using version OpenSSL 0.9.8o 01 Jun 2010
Posted by Jeff at January 29, 2011 01:25:44 CET
hey folks!
1. adapt the paths in the define section at the beginning! search for "openssl.cnf" and adapt the path (mine is: DEFINE("OPEN_SSL_CONF_PATH", "C:/xampp/apache/bin/openssl.cnf");).
2. create the necessary folders! you will probably need a folder "customer" containing a folder "tmp" containing a folder "openssl". (look here: DEFINE("FILE_LOCATION", $_SERVER["DOCUMENT_ROOT"]."/customer/tmp/openssl/");)
3. the script did not manage to provide a valid private key though on my installation
have fun!