added openssl_remote_cert_check
This commit is contained in:
		
							
								
								
									
										3
									
								
								bash/check_cert_of_remote_host.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								bash/check_cert_of_remote_host.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					# check cert (and not only a successfully connect) of a remote server with openssl:
 | 
				
			||||||
 | 
					CHECK_HOST="google.com:443";  echo -n | openssl s_client -connect $CHECK_HOST | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | openssl x509 -text 
 | 
				
			||||||
		Reference in New Issue
	
	Block a user