issue: server DN default value evaluation time
This commit is contained in:
parent
821d72a773
commit
762af5dd48
1 changed files with 4 additions and 1 deletions
|
@ -252,12 +252,15 @@ class EasyRSA:
|
|||
def issue(
|
||||
self,
|
||||
cert_type: CertificateType = CertificateType.client,
|
||||
dn: DistinguishedName = DistinguishedName.build(),
|
||||
dn: DistinguishedName | None = None,
|
||||
) -> crypto.X509 | None:
|
||||
"""
|
||||
Issue a client or server certificate
|
||||
"""
|
||||
|
||||
if dn is None:
|
||||
dn = DistinguishedName.build()
|
||||
|
||||
if not (cert_type is CertificateType.client
|
||||
or cert_type is CertificateType.server):
|
||||
return None
|
||||
|
|
Loading…
Reference in a new issue