Actually I’m using Mcrypt but I’m moving to OpenSSL and I need to be able to use it the exact same way as Mcrypt. This is how I’m encrypting For the decryption, I already managed to do it in OpenSSL, both are working the same exact ways For the encryption using OpenSSL, this is my test code …
Tag: openssl
SSL certificate problem: unable to get issuer certificate
I’m currently testing an API on a website with a certificate by executing a php script that uses curl, in command line on my local windows machine. But the script never manages to reach the server. I …
PHP’s openssl_sign Equivalent in Node JS
I am (slowly) learning Node JS and trying to use it in place of a PHP script I have. I need to sign a string I have assembled with SSL to pass on to a curl request. In PHP, this is how I’ve done it: So I’m trying to generate the evuivalent of $signed_signature, but I’m not sure how to
Make error for OpenSSL when compiling PHP from source
I’ve attempted compiling both PHP 5.3.10 and 5.6.7 from source on Ubuntu Hardy x86_64 (I know, it’s old). Below is the configure statement I used: But am getting an issue when issuing the make command: This works perfectly fine and I can compile/make/make install when I do not include the –w…
Installing Composer OpenSSL Issue
I am trying to install composer however when I go to install it I get this error: I currently have php 5.4.31 and I am running WAMP2.2 I’ve checked my php.ini file in the bin/php/php5.4.31/ and ensured that the following line is uncommented: The error still resolves and I’m at a loss as to how I c…
Can not import RSA keys generated with php openssl to windows CryptoAPI
have problems importing keys generated with php openssl to CryptoAPI I successfully create key pair in php, crypt/decrypt a string with it – no problems Then I wrote a program in Delphi which should import private and public keys into CryptoAPI. I found some example private RSA key in internet and it im…
Generating cryptographically secure tokens
In order to generate a 32 character token for access to our API we currently use: I have read that this method is not cryptographically secure as it’s based on the system clock, and that openssl_random_pseudo_bytes would be a better solution as it would be harder to predict. If this is the case, what wo…
OpenSSL not working on Windows, errors 0x02001003 0x2006D080 0x0E064002
Problem: OpenSSL is not working in my Windows environment. OpenSSL repeatedly reports errors 0x02001003, 0x2006D080 and 0x0E064002. Environment: What I’ve Attempted: Installation Instructions http://www.php.net/manual/en/openssl.installation.php PHP.ini extension=php_openssl.dll Openssl.cnf E:wampphpext…
openssl_pkey_new() throwing errors — Proper openssl.cnf setup for php
**Okay, It’s become clear that this issue is an issue related with the setup of openssl on the Linux server and how to properly setup a custom openssl.cnf file. I am not looking for anything …
HTTPS and SSL3_GET_SERVER_CERTIFICATE:certificate verify failed, CA is OK
I am using XAMPP for development. Recently I upgraded my installation of xampp from an old version to 1.7.3. Now when I curl HTTPS enabled sites I get the following exception Fatal error: Uncaught exception ‘RequestCore_Exception’ with message ‘cURL resource: Resource id #55; cURL error: SSL…