fbett / le-acme2-php Goto Github PK
View Code? Open in Web Editor NEWLetsEncrypt client library for ACME v2 written in PHP.
License: MIT License
LetsEncrypt client library for ACME v2 written in PHP.
License: MIT License
Currently errors are just dumped to standard output
Ideally these should be thrown using typed exceptions so they can be caught, handled and properly rendered
Is there any way to wait for the authorization to finish? For new orders the script needs to be ran twice to generate the certificates. Thanks!
Hi @fbett,
In your readme the minimum version is 7.1, but in the composer files 7.3 is required. A quick check showed that the code basically runs on 7.1, except for this line:
https://github.com/fbett/le-acme2-php/blob/master/src/LE_ACME2/Authorizer/AbstractAuthorizer.php#L52
where removing the comma fixes the error I had. I did not run into other issues yet. Would you consider extending support to 7.1?
I've taken the sample file and am not able to get it working โ no key files are created, and it looks like the certificate is not created at LetsEncrypt. Am I missing something? Some kind of permissions that need to be set?
It would also be great to see the code for the described "integrated workflow" as I am attempting to create the same functionality.
Hey,
Do you by any chance take on freelance work? If yes, how do i get in touch with you?
Hi there,
I've been using this library for a fair while now (I actually submitted issue #1 !) and have recently started getting some bizarre behaviour.
Running $order->authorize(\LE_ACME2\Order::CHALLENGE_TYPE_HTTP);
results in the authorisation process hanging forever and not progressing; my logic hasn't changed and nor has the environment - generating a certificate using the command line tool on the same server works.
Enabling logging yields the following:
08-11-2018 21:14:34: will request from https://acme-v02.api.letsencrypt.org/acme/authz/XXXXXX
08-11-2018 21:14:35: LE_ACME2\Connector\Connector: response received
Any insight would be appreciated!
Thanks,
Lee
Hi there,
It looks as though the composer require line is wrong in your documentation.
By the looks of things, it should be
composer require fbett/le_acme2
Lee
I was wondering if there are any install instructions for fbett/le-acme2-php
Most things are unclear.
I can install a tree of php files only with some trouble.
I need to know any directories used, how to set them to my local names, what they are for and how they will be used.
I do not run cron, and production site updates cannot be done from within the php/Apache system.
Need some help here ...
Target site/first try: www.randomserver.dyndns.org
Hi,
With an internationalised domain name and OCSP stapling enabled, I get the following error:
PHP Warning: openssl_csr_new() [<a href='http://php.net/manual/en/function.openssl-csr-new'>function.openssl-csr-new</a>]:
Error loading request_extensions_section section v3_req of /var/www/****/csr_config in ***le_acme2/src/LE_ACME2/Utilities//Certificate.php on line 58
I checked the content of the csr_config, which didn't show anything strange:
HOME = .
RANDFILE = ***.rnd
[ req ]
default_bits = 4096
default_keyfile = privkey.pem
distinguished_name = req_distinguished_name
req_extensions = v3_req
[ req_distinguished_name ]
countryName = Country Name (2 letter code)
[ v3_req ]
basicConstraints = CA:FALSE
subjectAltName = DNS:xn--***,DNS:www.xn--***
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
tlsfeature=status_request
Disabling OCSP stapling resolved the issue. I didn't have any issues with this with any of the "standard" domain names I tested.
Any ideas on this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.