Lines Matching refs:cert

17     def add_tls(self, application='empty', cert='default', port=7080):  argument
21 "tls": {"certificate": cert},
88 def ca(self, cert='root', out='localhost'): argument
97 option.temp_dir + '/' + cert + '.key',
99 option.temp_dir + '/' + cert + '.crt',
108 def set_certificate_req_context(self, cert='root'): argument
113 option.temp_dir + '/' + cert + '.crt'
206 self.add_tls(cert='new')
273 cert = chain[0]
276 cert['subject']['common_name'] == 'default'
279 cert['issuer']['common_name'] == 'default'
285 - self.openssl_date_to_sec_epoch(cert['validity']['since'])
290 self.openssl_date_to_sec_epoch(cert['validity']['until'])
291 - self.openssl_date_to_sec_epoch(cert['validity']['since'])
305 self.ca(cert='root', out='int')
306 self.ca(cert='int', out='end')
334 self.add_tls(cert='end')
358 self.add_tls(cert='int')
383 self.add_tls(cert='end-int')
407 self.ca(cert='root', out='int1')
409 self.ca(cert='int{}'.format(chain_length - 2), out='end')
411 self.ca(cert='int{}'.format(i), out='int{}'.format(i + 1))
418 with open(temp_dir + '/all.crt', 'a') as chain, open(path) as cert:
419 chain.write(cert.read())
430 self.add_tls(cert='all')
446 cert = self.conf_get('/certificates/localhost')
447 assert cert['chain'][0]['subject'] == {}, 'empty subject'
448 assert cert['chain'][0]['issuer']['common_name'] == 'root', 'issuer'
466 cert = self.conf_get('/certificates/localhost')
467 assert cert['chain'][0]['subject'] == {
470 assert cert['chain'][0]['issuer']['common_name'] == 'root', 'issuer'
489 cert = self.conf_get('/certificates/localhost')
490 assert cert['chain'][0]['subject'] == {
493 assert cert['chain'][0]['issuer']['common_name'] == 'root', 'issuer'