示例#1
0
 def validate(self):
     if self.cert and (not self.key):
         return tr('Please specify a private key.')
     if self.key and (not self.cert):
         return tr('Please specify a certificate.')
     m2validate = SSLConfig.validate(self)
     if m2validate is not None:
         return m2validate
     return None