Esempio n. 1
0
 def do_show(self, arguments):
     """show SSL configuration information"""
     
     provider = Provider()
     
     if provider.key_material_exists():
         print "SSL has been provisioned:"
         print "          SSL Key:", provider.key_exists() and "EXISTS" or "MISSING"
         print "  SSL Certificate:", provider.certificate_exists() and "EXISTS" or "MISSING"
         print "         Key Pair:", provider.key_material_valid() and "VALID" or "INVALID"
     else:
         print "SSL has not been provisioned."
Esempio n. 2
0
 def do_show(self, arguments):
     """show SSL configuration information"""
     
     provider = Provider()
     
     if provider.key_material_exists():
         print "SSL has been provisioned:"
         print "          SSL Key:", provider.key_exists() and "EXISTS" or "MISSING"
         print "  SSL Certificate:", provider.certificate_exists() and "EXISTS" or "MISSING"
         print "         Key Pair:", provider.key_material_valid() and "VALID" or "INVALID"
     else:
         print "SSL has not been provisioned."