openSSL with PHP on Win32

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brad Kent

    #1

    openSSL with PHP on Win32

    I need a little shove in the right direction.
    I've got the openSSL extension successfully installed for PHP


    But I'm not having any luck using it.

    FYI. I'm wanting to encrypt data in a database with a public key and
    decrypt with a private key (openSSL seems to be the best solution..).

    system:
    Apache/1.3.24
    PHP Version 4.3.3
    NT 4

    echo '<PRE>';
    $privkey = openssl_pkey_ne w();
    echo gettype($privke y)."\n";
    while (($e = openssl_error_s tring()) !== false) {
    echo $e . "\n";
    }
    echo '</PRE>';

    outputs:
    resource
    error:0E06D06C: configuration file routines:NCONF_ get_string:no value
    (above error a total of 6 times)

    same prob with
    $privkey = openssl_pkey_ne w(array('config '=>'c:/php/openssl/openssl.cnf'));

    I'm using the openssl.cnf that came with php

    any help would be greatly appreciated.
Working...