Skip to content
Advertisement

Tag: openssl

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

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 can fix it. As

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 would the equivalent code look like?

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:wampphpextrasopenssl.cnf %PATH% E:wampphp Rebooted phpinfo: —-OpenSSL support enabled —-OpenSSL Library Version OpenSSL 1.0.1e 11 Feb 2013 —-OpenSSL Header Version OpenSSL 0.9.8y 5 Feb 2013 With and without specifying config in configargs With and

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 certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Advertisement