Solved

Exporting SSL Cert

  • 25 September 2017
  • 4 replies
  • 1190 views

Userlevel 2
Badge +7
Hi All,

i need to export the *.nutanix.local cert in a text format, does anyone have the commands to do this?
icon

Best answer by levtech1 28 September 2017, 16:39

Hi Angelo,



thank you for the reply back but that didnt work, i found the solution by doing the below from any CVM:



python

import sslprint ssl.get_server_certificate(('PrismVIP', 9440), ssl_version=ssl.PROTOCOL_TLSv1)
View original

4 replies

Userlevel 7
Badge +35
Hi levtech1

Does this help -- if you just save it from the browser, you can open the file with notepad

Let me know, Thanks
Userlevel 2
Badge +7
Hi Angelo,

thank you for the reply back but that didnt work, i found the solution by doing the below from any CVM:

python
import sslprint ssl.get_server_certificate(('PrismVIP', 9440), ssl_version=ssl.PROTOCOL_TLSv1)
Badge +1

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.

Userlevel 2
Badge +4

Hi Martin Edelius

try changing PROTOCOL_TLSv1 to PROTOCOL_TLSv1_2

Let me know

Reply