This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Validate IP address | |
import socket | |
def valid_ip(ipaddress): | |
try: | |
socket.inet_aton(ipaddress) | |
return True | |
except: | |
return False | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Расшифровать ключ | |
openssl rsa –in enc.key -out dec.key | |
# Сравнить фингерпринты | |
openssl rsa -noout -modulus -in /rsa.key | |
openssl x509 -noout -modulus -in /crt.crt | |
# Вся инфа о сертификате | |
openssl x509 -in /cert.pem -noout -text |
NewerOlder