Skip to content

Commit

Permalink
showcert: Add a timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Oct 30, 2024
1 parent e3099b9 commit 6c74aa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions showcert.pike
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
int main(int argc, array(string) argv) {
Thread.Thread() {sleep(15); exit(1, "TIMEOUT Unable to connect to server\n");};
//Subject Alternative Name - defined in RFC 3280 as having the ID 2.5.29.17
object SAN = Standards.ASN1.Types.Identifier(); SAN->id = ({2, 5, 29, 17});
if (argc < 2) exit(1, "USAGE: pike %s address [port] [domain name]\nConnects to address:port and requests domain, shows SSL cert.\n");
Expand Down

0 comments on commit 6c74aa3

Please sign in to comment.