Skip to content

Commit

Permalink
Forgotten
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocorti committed Mar 28, 2022
1 parent 74e4bc0 commit cde6f4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions check_ssl_cert
Original file line number Diff line number Diff line change
Expand Up @@ -2141,7 +2141,7 @@ fetch_certificate() {
exec_with_timeout "printf 'A01 LOGOUT\\n' | ${OPENSSL} s_client ${INETPROTO} ${CLIENT} ${CLIENTPASS} -crlf -showcerts -connect ${HOST_ADDR}:${PORT} ${SERVERNAME} ${SCLIENT_PROXY} ${SCLIENT_PROXY_ARGUMENT} -verify 6 ${ROOT_CA} ${SSL_VERSION} ${SSL_VERSION_DISABLED} ${SSL_AU} ${STATUS} ${DANE} ${RENEGOTIATION} 2> ${ERROR} 1> ${CERT}"
RET=$?
;;
postgres)
postgres|postgresql)
exec_with_timeout "printf 'X\\0\\0\\0\\4' | ${OPENSSL} s_client ${INETPROTO} ${CLIENT} ${CLIENTPASS} -starttls ${PROTOCOL} -showcerts -connect ${HOST_ADDR}:${PORT} ${SERVERNAME} ${SCLIENT_PROXY} ${SCLIENT_PROXY_ARGUMENT} -verify 6 ${ROOT_CA} ${SSL_VERSION} ${SSL_VERSION_DISABLED} ${SSL_AU} ${STATUS} ${DANE} ${RENEGOTIATION} 2> ${ERROR} 1> ${CERT}"
RET=$?
;;
Expand Down Expand Up @@ -3282,7 +3282,7 @@ main() {
imaps)
PORT=993
;;
postgres)
postgres|postgresql)
PORT=5432
;;
sieve)
Expand Down Expand Up @@ -4423,7 +4423,7 @@ main() {
TIMEOUT_REASON="checking TLS renegotiation"
case "${PROTOCOL}" in
pop3 | ftp | smtp | irc | ldap | imap | postgres | sieve | xmpp | xmpp-server | mysql)
pop3 | ftp | smtp | irc | ldap | imap | postgres | postgresql | sieve | xmpp | xmpp-server | mysql)
exec_with_timeout "printf 'R\\n' | ${OPENSSL} s_client ${INETPROTO} -crlf -connect ${HOST_ADDR}:${PORT} ${SERVERNAME} ${SCLIENT_PROXY} ${SCLIENT_PROXY_ARGUMENT} -starttls ${PROTOCOL} 2>&1 | grep -F -q err"
RET=$?
;;
Expand Down

0 comments on commit cde6f4b

Please sign in to comment.