Commits

tednaleid  committed 84f52d0

changed ssl aliases to work in zsh

  • Participants
  • Parent commits 1e14802

Comments (0)

Files changed (1)

File zshrc_general

 alias so=splitOn
 function splitOn() { sed -E 's/(.*)'$1'(.*)/\'$2'/'; }
 
+# SSL #
+alias sslserver=': SSL print out a list of the acceptable CAs for a server, as well as its public key, pass host:port; openssl s_client -prexit -showcerts -connect'
+alias sslprintcert=': SSL print out the details of a cert using keytool; keytool -v -printcert -file'
+alias sslprintcert2=': SSL print out the details of a cert using openssl; openssl x509 -noout -text -in'
+alias sslstoredkeys=': SSL print out all of the keys in a keystore file; keytool -list -v -keystore'
+alias sslstoredkeys2=': SSL print out all of the raw public keys in a keystore file; keytool -list -rfc -keystore'
+alias sslcerthash=': SSL print out the hash for a certificate; openssl x509 -hash -noout -in' 
+
 ## TRAFFIC MONITORING ##
 
 # Need to use ports/brew to install "tcpflow" for this to work
 
 # from https://github.com/tednaleid/zsh-syntax-highlighting
 if [ -z $ZSH_SYNTAX_HIGHLIGHTING ]; then
-    export ZSH_SYNTAX_HIGHLIGHTING=~/Documents/workspace/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+    export ZSH_SYNTAX_HIGHLIGHTING=~/bin/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
 fi
 
 if [ -e  ]; then
 alias redisstart='sudo launchctl start io.redis.redis-server'
 alias redisstop='sudo launchctl stop io.redis.redis-server'
 
-## SSL KEYTOOL/OPENSSL ############################################################################################################
 
-alias sslserver=': [SSL] print out a list of the acceptable CAs for a server, as well as its public key, pass host:port; openssl s_client -prexit -showcerts -connect'
-alias sslprintcert=': [SSL] print out the details of a cert using keytool; keytool -v -printcert -file'
-alias sslprintcert2=': [SSL] print out the details of a cert using openssl; openssl x509 -noout -text -in'
-alias sslstoredkeys=': [SSL] print out all of the keys in a keystore file; keytool -list -v -keystore'
-alias sslstoredkeys2=': [SSL] print out all of the raw public keys in a keystore file; keytool -list -rfc -keystore'
-alias sslcerthash=': [SSL] print out the hash for a certificate; openssl x509 -hash -noout -in'
-