ankit1986 Posted April 14, 2009 Share Posted April 14, 2009 Hi I got a SSL certificate form Verisign. I have installed it also. It's displaying properly in the browser. I want to code in PHP using OPENSSL ... i am running on IIS v5 on localhost .... but when I use any function of OpenSSL library, it gives an error ....like when I use openssl_get_publickey() ... it says "Fatal error: Call to undefined function: openssl_get_publickey() in ******.php on line 5" I am using PHP 4.3.10 Quote Link to comment Share on other sites More sharing options...
JonnoTheDev Posted April 14, 2009 Share Posted April 14, 2009 Your php version must be compiled without it. Recompile with --with-openssl[=DIR] Quote Link to comment Share on other sites More sharing options...
ankit1986 Posted April 14, 2009 Author Share Posted April 14, 2009 yes i downloaded the latest OPENSSL Package from http://www.openssl.org/source/ but then how shud I go about compiling it ??? Quote Link to comment Share on other sites More sharing options...
JonnoTheDev Posted April 14, 2009 Share Posted April 14, 2009 No no no. OpenSSL is an application for doing things like generating key files and CSR files. This has absolutely nothing to do with php. If you want to use funtions such as openssl_get_publickey() then you must compile php with the correct modules. You will see what modules are loaded by creating a phpinfo() file. Here: http://uk.php.net/manual/en/openssl.installation.php Quote Link to comment Share on other sites More sharing options...
ankit1986 Posted April 15, 2009 Author Share Posted April 15, 2009 I am sorry . I am an ameteur in this field I'll tell u the exact procedure I did : 1) I have PHP v4.3.10 running ... on WIndows 2) I dont where are all the PHP files stored ... there's a PHP folder in C:\PHP ...... but it doesn't have those dev or ext folders ... 3) extension=php_openssl line is commented in my php.ini 4) I downloaded OpenSSL binaries from http://www.slproweb.com/products/Win32OpenSSL.html 5) Installed it on default seetings 6) It created one folder C:\OpenSSL which has some DLLs 7) I think we are interested in libeay32.dll & openssl.cnf But still when I run my script, it says Fatal error: Call to undefined function: openssl_get_publickey() I know I am missing a few things in between but i am not able to figure it out by reading the documentation given on php.net How shud I go about doing things now ?? Quote Link to comment Share on other sites More sharing options...
ankit1986 Posted April 15, 2009 Author Share Posted April 15, 2009 Unable to load dynamic library './php_openssl.dll' - The specified module could not be found. I also get this error ... Quote Link to comment Share on other sites More sharing options...
ankit1986 Posted April 15, 2009 Author Share Posted April 15, 2009 Yups NOW I get u .... I was downloading a wrong library .... now I'll compile PHP with OPENSSL modules ..... will get back if I have any problems .... thanks till now Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.