php-openssl

PHP OpenSSL extension not working while install Typo3 6.2.2 on window7

你。 提交于 2019-12-03 15:57:53
问题 I've installed Typo3 6.2.2 on window7 but I got an error message as below: PHP OpenSSL extension not working Something went wrong while trying to create a new private key for testing. Please check the integration of the PHP OpenSSL extension and if it is installed correctly. I try to find the solution on the internet about this error but I can not solve this bug. Anyone know, can you help me to find the solution please? Thanks. 回答1: Solution that worked for me on XAMPP and Windows Vista:

Implementing secp256k1 (ECDSA) in PHP (for Bitcoin) [closed]

筅森魡賤 提交于 2019-12-03 08:42:39
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. To keen downvoters and/or closers: If you think this is offtopic for SO, kindly point me out other StackExchange site where this question would be more appropriate. How to implement ECDSA curve secp256k1 in PHP? Or rather: Are there any solutions - ie. includable specialized classes - already done? I can see there are plenty of opensource libraries, classes and stuff available for other languages (JavaScript, Python,...)

PHP OpenSSL extension not working while install Typo3 6.2.2 on window7

烂漫一生 提交于 2019-12-03 06:08:15
I've installed Typo3 6.2.2 on window7 but I got an error message as below: PHP OpenSSL extension not working Something went wrong while trying to create a new private key for testing. Please check the integration of the PHP OpenSSL extension and if it is installed correctly. I try to find the solution on the internet about this error but I can not solve this bug. Anyone know, can you help me to find the solution please? Thanks. Solution that worked for me on XAMPP and Windows Vista: Activate the PHP module openssl Open php.ini and uncomment(delete ';') in: ;extension=php_openssl.dll Double

PHP how to fix segmentation fault when call fclose?

只谈情不闲聊 提交于 2019-12-02 23:49:31
问题 I have Ubuntu 18.04, PHP CLI 7.2.2 ZTS. When I call the following code: I crashes not everytime, but sometimes. The $stream variable contains resource, opened by stream_socket_client function. if (is_resource($stream)) { fclose($stream); } I get the next segmentation error: Thread 4 "php" received signal SIGPIPE, Broken pipe. [Switching to Thread 0x7fffe3fff700 (LWP 22374)] 0x00007ffff5ea82b7 in __libc_write (fd=47, buf=0x7fffd9de7e23, nbytes=136) at ../sysdeps/unix/sysv/linux/write.c:27 27 .

PHP how to fix segmentation fault when call fclose?

五迷三道 提交于 2019-12-02 13:16:32
I have Ubuntu 18.04, PHP CLI 7.2.2 ZTS. When I call the following code: I crashes not everytime, but sometimes. The $stream variable contains resource, opened by stream_socket_client function. if (is_resource($stream)) { fclose($stream); } I get the next segmentation error: Thread 4 "php" received signal SIGPIPE, Broken pipe. [Switching to Thread 0x7fffe3fff700 (LWP 22374)] 0x00007ffff5ea82b7 in __libc_write (fd=47, buf=0x7fffd9de7e23, nbytes=136) at ../sysdeps/unix/sysv/linux/write.c:27 27 ../sysdeps/unix/sysv/linux/write.c: No such file or directory. (gdb) bt #0 0x00007ffff5ea82b7 in __libc

Native PHP 5.6 OpenSSL Composer.phar failed to enable crypto on Windows

南楼画角 提交于 2019-12-02 12:01:30
I have a problem with PHP 5.6 native on a Windows machine. I get this error when I try to run a composer update (php composer.phar update): [Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol Failed to enable crypto failed to open stream: operation failed The openssl extension is loaded. I already downloaded this file http://curl.haxx.se/ca/cacert.pem and saved it to a path on my machine and set this path in

PHP RSA key creation

瘦欲@ 提交于 2019-12-01 17:55:23
I have an issue with creating/using RSA keys created and used in PHP. Problem is, that the (public AND private) keys should be exchanged between different servers (e.g. when a user account is moved). Now, the openssl-lib of PHP does not provide any detailed info on in what format the keys are created. The latest documentation at http://php.net/manual/en/function.openssl-pkey-export.php just states, that it is "in PEM format", but it does not say whether it is in PKCS#1 or PKCS#8 Additionally, the headers and trailers of the private key PEM differ between PHP versions as the following code

Google Cloud SQL SSL fails peer certificate validation

丶灬走出姿态 提交于 2019-12-01 08:13:22
I have an issue using MySQL on PHP 5.6, and after three days of debugging PHP, OpenSSL, MySQLnd Drivers on PHP and trying out the mysql_client on an Ubuntu 14.04 machine, I have come to a conclusion: Google Cloud SQL SSL certificates will not work on PHP 5.6 and above. For a start, the Google Cloud is a great service, and modern cryptography is enforced throughout the Google ecosystem. However, I couldn't use it because of one little problem: Google Cloud SQL SSL Server certificates have impossible common names. Google Cloud SQL Server (or peer) certificates have a Common Name (CN) that looks

How to decrypt a string with OpenSSL which was previously encrypted with mcrypt?

孤者浪人 提交于 2019-12-01 05:54:13
Since mcrypt was deprecated in PHP 7.1 and I have a lot of data encrypted/decrypted with mcrypt in existing project, how to migrate my PHP code from mcrypt to OpenSSL? I have the following code to encrypt: $encoded = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, 'salt', 'source string', MCRYPT_MODE_ECB)); And decryption code is: $source = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, 'salt', base64_decode('encoded string'), MCRYPT_MODE_ECB); What openssl_ functions should I use in the above examples to get the same results without encoded data conversion? Or the only way is to run a script which

How to decrypt a string with OpenSSL which was previously encrypted with mcrypt?

前提是你 提交于 2019-12-01 04:06:16
问题 Since mcrypt was deprecated in PHP 7.1 and I have a lot of data encrypted/decrypted with mcrypt in existing project, how to migrate my PHP code from mcrypt to OpenSSL? I have the following code to encrypt: $encoded = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, 'salt', 'source string', MCRYPT_MODE_ECB)); And decryption code is: $source = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, 'salt', base64_decode('encoded string'), MCRYPT_MODE_ECB); What openssl_ functions should I use in the above