コード例 #1
0
 def run(args, raiseonerr=True):
     result = _RunResult('', '', 255)
     result.raw_output = str.encode(
         'certutil: certificate is invalid: Peer\'s certificate issuer '
         'has been marked as not trusted by the user.')
     result.raw_error_output = b''
     result.error_log = ''
     return result
コード例 #2
0
 def run(args, raiseonerr=True):
     result = _RunResult('', '', 2)
     result.raw_output = bytes(
         'O = EXAMPLE.TEST, CN = ipa.example.test\n'
         'error 20 at 0 depth lookup: unable to get local issuer '
         'certificate\nerror %s: verification failed'.format(
             args[-1]).encode('utf-8'))
     result.raw_error_output = b''
     result.error_log = ''
     return result
コード例 #3
0
 def run(args, raiseonerr=True):
     result = _RunResult('', '', 0)
     result.raw_output = b'certutil: certificate is valid\n'
     result.raw_error_output = b''
     return result
コード例 #4
0
 def run(args, raiseonerr=True):
     result = _RunResult('', '', 0)
     result.raw_output = bytes('%s: OK'.format(
         args[-1]).encode('utf-8'))
     result.raw_error_output = b''
     return result