Doc->Bug #77787 [ReO->Nab]: OPENSSL PRIVATE KEY is missing

From: Date: Sun, 01 Dec 2019 19:23:07 +0000
Subject: Doc->Bug #77787 [ReO->Nab]: OPENSSL PRIVATE KEY is missing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223990@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77787&edit=1 ID: 77787 Updated by: bukka@php.net Reported by: xxalfa at gmail dot com Summary: OPENSSL PRIVATE KEY is missing -Status: Re-Opened +Status: Not a bug -Type: Documentation Problem +Type: Bug Package: OpenSSL related PHP Version: 7.3.11 Assigned To: bukka Block user comment: N Private report: N New Comment: Ok I finally see the issue in your code. You don't pass options to each function so config is not set. In this case it's missing in openssl_pkey_export. It works if you replace it with openssl_pkey_export( $openssl_resource, $private_key, null, $options ); Previous Comments: ------------------------------------------------------------------------ [2019-11-18 00:05:39] xxalfa at gmail dot com I have update all files to version 7.3.11. Not the content is the problem, but if C:\usr\local\ssl\openssl.cnf does not exist, the key is not generated. It bothers me that I had to create the path C:\usr\local\ssl\ myself. ------------------------------------------------------------------------ [2019-11-17 18:23:15] bukka@php.net Could you actually share the content of C:\usr\local\ssl\openssl.cnf and C:\php\extras\ssl\openssl.cnf . I think there might be issue in the actual config as it's strange that it doesn't work for you. ------------------------------------------------------------------------ [2019-11-10 22:32:42] xxalfa at gmail dot com An alternative file can be specified on page "https://www.php.net/manual/de/function.openssl-csr-new.php" under config, but what do I have to do to use this file? ------------------------------------------------------------------------ [2019-11-10 19:10:22] bukka@php.net Ah yeah this is expected and lots of code depends on it so we can't change this. Most of the time it's what users want as it allows using system config. The only thing that you can do is to change the location using environment variable OPENSSL_CONF (or SSLEAY_CONF is also checked for legacy reasons). Have to close it as there is nothing we can do about this. ------------------------------------------------------------------------ [2019-10-27 20:52:24] xxalfa at gmail dot com After all this time, are not we a millimeter further? Although parameter $options[ 'config' ] is set, openssl insists that file C:\usr\local\ssl\openssl.cnf must exist there. I have already stated that it is not a bug, it is simply a misconduct. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=77787 -- Edit this bug report at https://bugs.php.net/bug.php?id=77787&edit=1

« previous php.bugs (#223990) next »