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

[Feature Request] Configurable timeout #120

Open
clarjon1 opened this issue May 17, 2022 · 1 comment
Open

[Feature Request] Configurable timeout #120

clarjon1 opened this issue May 17, 2022 · 1 comment

Comments

@clarjon1
Copy link

Hello!

Would it be possible to add in a way to have a configurable timeout, so as to speed up output for a large number of hosts being checked? (Especially for folks who have been given a bunch of hostnames to check certs on without the folks handing over the details knowing if each host even has ssl.)

I've been able to add one by adjusting

echo "" | "${OPENSSL}" s_client $OPTIONS 2> "${ERROR_TMP}" 1> "${CERT_TMP}"
this line to run "timeout 5" before the openssl client, changing it to

echo "" | timeout 5 "${OPENSSL}" s_client $OPTIONS 2> "${ERROR_TMP}" 1> "${CERT_TMP}"

And while this does speed things up and allow me to take a list of hostnames that may or may not have ssl on them it does cause a lot of extra errors in the output about temp files not being readable or existing

@cbloss
Copy link

cbloss commented Aug 1, 2023

You have SO saved me on this one!!! THANK YOU!!!!!

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

2 participants