ssl得安装
openssl.cnf有吗?

解决方案 »

  1.   

    有openssl.cnf,在php\openssl中。也设置了环境变量OPENSSL_CONF,指向这个openssl.cnf。
        去掉了php.ini中extension php_openssl.dll前的分号。同时把libeay32.dll等文件拷到了winnt\system32目录下。
         
        现在没有“未定义的函数”错误了,但有一堆其他错误;例如,程序中调用openssl_pkey_new()error:02001003:system library:fopen:No such processerror:2006D080:BIO routines:BIO_new_file:no such fileerror:0E064002:configuration file routines:CONF_load:system liberror:02001003:system library:fopen:No such processerror:2006D080:BIO routines:BIO_new_file:no such fileerror:0E064002:configuration file routines:CONF_load:system lib
      

  2.   

    附:php源程序<?php$key = openssl_pkey_new();while( ( $e = openssl_error_string() ) !== FALSE )
    {
    echo $e;
    }?>结果:
    error:02001003:system library:fopen:No such processerror:2006D080:BIO routines:BIO_new_file:no such fileerror:0E064002:configuration file routines:CONF_load:system liberror:02001003:system library:fopen:No such processerror:2006D080:BIO routines:BIO_new_file:no such fileerror:0E064002:configuration file routines:CONF_load:system lib到底是怎么回事啊?我搞了一天了,郁闷+急!