i need to export the *.nutanix.local cert in a text format, does anyone have the commands to do this?
Best answer by levtech1
View originalBest answer by levtech1
View originalWhat you are missing is the import ssl library before running the import sslprint. The steps would be -
>>> import ssl
>>> print ssl.get_server_certificate(('cluster-VIP',9440),ssl_version=ssl.PROTOCOL_TLSv1_2)
Just as a quick heads up to anyone else that finds this, as of writing this reply the above command doesn’t work. I get a syntax error:
>>> import sslprint ssl.get_server_certificate(('PrismVIP',9440),ssl_version=ssl.PROTOCOL_TLSv1)
File "<stdin>", line 1
import sslprint ssl.get_server_certificate(('PrismVIP',9440),ssl_version=ssl.PROTOCOL_TLSv1)
^
SyntaxError: invalid syntax
I’m not sure how to solve the problem, I just wanted to let others know that this solution no longer is valid.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.