Skip to content
Browse files

Add `telnets` function to wrap `openssl s_client`

I keep forgetting the syntax and going back to the man pages when
trying to run manual requests against an https server. Time to fix
this problem for good :-)
  • Loading branch information...
1 parent 3e96eed commit 7f29dab599ea22f18dd81f90e11071fab1234597 @caio committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 source/telnets.sh
View
5 source/telnets.sh
@@ -0,0 +1,5 @@
+telnets() {
+ local host=$1
+ local port=${2-443}
+ openssl s_client -quiet -connect $host:$port
+}

0 comments on commit 7f29dab

Please sign in to comment.
Something went wrong with that request. Please try again.