Lines Matching refs:issuer

121                  issuer: Optional['Credentials'] = None):
125 self._issuer = issuer
168 def issuer(self) -> Optional['Credentials']: member in Credentials
210 issuer=self, check_valid=spec.check_valid)
212 creds = TestCA.create_credentials(spec=spec, issuer=self, key_type=key_type,
272 while creds.issuer is not None:
273 creds = creds.issuer
311 issuer: Optional[Credentials] = None,
331 creds = Credentials(name=name, cert=cert, pkey=pkey, issuer=issuer)
344 creds = store.load_credentials(name="ca", key_type=key_type, issuer=None)
352 def create_credentials(spec: CertificateSpec, issuer: Credentials, key_type: Any,
363 issuer=issuer, valid_from=valid_from,
366 creds = TestCA._make_client_credentials(name=spec.name, issuer=issuer,
370 creds = TestCA._make_ca_credentials(name=spec.name, issuer=issuer,
448 def _add_leaf_usages(csr: Any, domains: List[str], issuer: Credentials) -> Any:
462 issuer.certificate.extensions.get_extension_for_class(
475 def _add_client_usages(csr: Any, issuer: Credentials, rfc82name: Optional[str] = None) -> Any:
481 issuer.certificate.extensions.get_extension_for_class(
500 issuer: Optional[Credentials] = None,
505 if issuer is not None:
506 issuer_subject = issuer.certificate.subject
507 issuer_key = issuer.private_key
511 subject = TestCA._make_x509_name(org_name=name, parent=issuer.subject if issuer else None)
519 return Credentials(name=name, cert=cert, pkey=pkey, issuer=issuer)
522 def _make_server_credentials(name: str, domains: List[str], issuer: Credentials,
528 subject = TestCA._make_x509_name(common_name=name, parent=issuer.subject)
530 issuer_subject=issuer.certificate.subject, pkey=pkey,
532 csr = TestCA._add_leaf_usages(csr, domains=domains, issuer=issuer)
533 cert = csr.sign(private_key=issuer.private_key,
536 return Credentials(name=name, cert=cert, pkey=pkey, issuer=issuer)
540 issuer: Credentials, email: Optional[str],
546 subject = TestCA._make_x509_name(common_name=name, parent=issuer.subject)
548 issuer_subject=issuer.certificate.subject, pkey=pkey,
550 csr = TestCA._add_client_usages(csr, issuer=issuer, rfc82name=email)
551 cert = csr.sign(private_key=issuer.private_key,
554 return Credentials(name=name, cert=cert, pkey=pkey, issuer=issuer)