Skip to content

Commit 2db7880

Browse files
committed
Add Timeout to connection
1 parent 28301fd commit 2db7880

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,26 @@ Or by pip installation:
2828

2929
```
3030
./ssl_checker.py -h
31-
usage: ssl_checker.py (-H [HOSTS [HOSTS ...]] | -f HOST_FILE) [-s HOST:PORT]
32-
[-c FILENAME.CSV] [-j] [-S] [-x] [-J] [-a] [-v] [-h]
31+
usage: ssl_checker.py (-H [HOSTS ...] | -f HOST_FILE) [-s HOST:PORT] [-c FILENAME.CSV] [-j] [-S] [-x] [-J] [-t TIMEOUT] [-a]
32+
[-v] [-h]
3333
3434
Collects useful information about the given host's SSL certificates.
3535
36-
optional arguments:
37-
-H [HOSTS [HOSTS ...]], --host [HOSTS [HOSTS ...]]
36+
options:
37+
-H, --host [HOSTS ...]
3838
Hosts as input separated by space
39-
-f HOST_FILE, --host-file HOST_FILE
39+
-f, --host-file HOST_FILE
4040
Hosts as input from a file
41-
-s HOST:PORT, --socks HOST:PORT
41+
-s, --socks HOST:PORT
4242
Enable SOCKS proxy for connection
43-
-c FILENAME.CSV, --csv FILENAME.CSV
43+
-c, --csv FILENAME.CSV
4444
Enable CSV file export
4545
-j, --json Enable JSON in the output
4646
-S, --summary Enable summary output only
4747
-x, --html Enable HTML file export
4848
-J, --json-save Enable JSON export individually per host
49+
-t, --timeout TIMEOUT
50+
Timeout for the connection in seconds (default: 5)
4951
-a, --analyze Enable SSL security analysis on the host
5052
-v, --verbose Enable verbose to see what is going on
5153
-h, --help Show this help message and exit
@@ -70,6 +72,8 @@ The port is optional here. The script will use 443 if not specified.
7072

7173
`-J, --json-save` Use this if you want to save as JSON file per host
7274

75+
`-t, --timeout TIMEOUT` Timeout for the connection in seconds (default: 5)
76+
7377
`-a, --analyze` This argument will include security analysis on the certificate. Takes more time. No result means failure to analyze.
7478

7579
`-v, --verbose` Shows more output. Good for troubleshooting.

0 commit comments

Comments
 (0)