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

--ttl option with auto command #59

Open
Lodesys opened this issue Jun 17, 2017 · 3 comments
Open

--ttl option with auto command #59

Lodesys opened this issue Jun 17, 2017 · 3 comments
Labels

Comments

@Lodesys
Copy link

Lodesys commented Jun 17, 2017

Seeing a potential problem where the --ttl option appears to be ignored with the auto command.

From what I can see from the code, it looks like the ttl value is not being passed to the check request within the checkAndIssue function.

When running commands manually, i get...

C:\.....\ssl.le>php acme-client.phar check --name www.doneworking.com

Certificate is valid until 24.07.2017

C:\.....\ssl.le>echo %errorlevel%
0

C:\.....\ssl.le>php acme-client.phar check --name www.doneworking.com --ttl 45

Certificate is valid until 24.07.2017

Certificate is going to expire within the specified 45 days.

C:\.....\ssl.le>echo %errorlevel%
1

C:\.....\ssl.le>php acme-client.phar auto --ttl 45

C:\.....\ssl.le>echo %errorlevel%
0

0 = Nothing to do, all certs still valid

My guess is that the check call within checkAndIssue is not seeing the ttl value.

@kelunik
Copy link
Owner

kelunik commented Jun 17, 2017

I'll have to check that, but I think the exit code is anyway broken on Windows currently and is always 0.

@Lodesys
Copy link
Author

Lodesys commented Jun 17, 2017

Thanks for checking. Running a Windows server and the auto command exit code has always seemed to work for me. In any case, the certs are not renewing with --ttl 45

@kelunik kelunik changed the title --ttl option ignored with auto command --ttl option with auto command Jan 11, 2018
@kelunik
Copy link
Owner

kelunik commented Jan 11, 2018

The option isn't ignored, there's just no such option and the client ignores invalid arguments.

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

No branches or pull requests

2 participants