Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AcmePhp\Ssl\Exception\KeyPairGenerationException on register #69

Closed
SamMakesCode opened this issue Apr 10, 2017 · 4 comments
Closed

AcmePhp\Ssl\Exception\KeyPairGenerationException on register #69

SamMakesCode opened this issue Apr 10, 2017 · 4 comments

Comments

@SamMakesCode
Copy link

SamMakesCode commented Apr 10, 2017

I'm trying to use this software on Windows Server (unfortunately) and when running the following command I get an exception I can't figure out.

php acmephp.phar register redacted@example.com

Which throws out the following output.

No account key pair was found, generating one...


  [AcmePhp\Ssl\Exception\KeyPairGenerationException]
  OpenSSL key creation failed during generation with error: error:02001003:sy
  stem library:fopen:No such process


register [--agreement AGREEMENT] [--] [<email>]
@crossjoin
Copy link

I had the same problem and could fix this by setting the OPENSSL_CONF environment variable, as described here: http://php.net/manual/en/openssl.installation.php

After that I got a CURL error (curl: (60) SSL certificate : unable to get local issuer certificate), which can be fixed by downloading the file https://curl.haxx.se/ca/cacert.pem and configuring it in the php.ini (setting curl.cainfo).

@ghost
Copy link

ghost commented Aug 12, 2017

I had similar issue, but got it fixed by adding OPENSSL_CONF environment variable as @crossjoin did.

PHP had an example file distributed with it, but what should be put in that file? How to configure it correctly?

@tgalopin
Copy link
Member

Do you have other issues with OpenSSL in your applications? I don't think this is related to Acme PHP.

@jderusse
Copy link
Contributor

I suggest to use the docker image that work out of box and embed all the require dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants