note 101549 added to function.openssl-error-string

From: Date: Thu, 23 Dec 2010 20:13:37 +0000
Subject: note 101549 added to function.openssl-error-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-175180@lists.php.net to get a copy of this message
it is really a pity - we lack documentation on php-openssl: for me a script seems to work as supposed but openssl_error_string moans about: error:02001002:system library:fopen:No such file or directory error:2006D080:BIO routines:BIO_new_file:no such file error:0E064002:configuration file routines:CONF_load:system lib error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value I mean OK I can and have to live with that - ignoring it as long as the script does what it is supposed to. But the problem is: due to lack of documentation on php - openssl people are tapping in the openssl_error_string dealing with errors that are not of concern to them. IMPORTANT THINGS: provide $configargs within configargs set config to your_path_to/openssl.cnf typecast these arguments and make sure they are integer values private_key_bits = (int)1024; private_key_type = (int)OPENSSL_KEYTYPE_RSA; Be aware that an empty passphrase is not just an empty string but has to be NULL !!! ---- Server IP: 69.147.83.197 Probable Submitter: 85.125.10.5 ---- Manual Page -- http://www.php.net/manual/en/function.openssl-error-string.php Edit -- https://master.php.net/note/edit/101549 Del: integrated -- https://master.php.net/note/delete/101549/integrated Del: useless -- https://master.php.net/note/delete/101549/useless Del: bad code -- https://master.php.net/note/delete/101549/bad+code Del: spam -- https://master.php.net/note/delete/101549/spam Del: non-english -- https://master.php.net/note/delete/101549/non-english Del: in docs -- https://master.php.net/note/delete/101549/in+docs Del: other reasons-- https://master.php.net/note/delete/101549 Reject -- https://master.php.net/note/reject/101549 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#175180) next »