mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
openssl_certificate: Ensure issuer field is set (#34982)
Ensure the Issuer field of the certificate is set when using the selfsigned backend. Fixes: https://github.com/ansible/ansible/issues/34963
This commit is contained in:
parent
cf88bfdbbf
commit
a2b00e9b52
2 changed files with 7 additions and 0 deletions
|
@ -449,6 +449,7 @@ class SelfSignedCertificate(Certificate):
|
|||
# 10 years. 315360000 is 10 years in seconds.
|
||||
cert.gmtime_adj_notAfter(315360000)
|
||||
cert.set_subject(self.csr.get_subject())
|
||||
cert.set_issuer(self.csr.get_subject())
|
||||
cert.set_version(self.version - 1)
|
||||
cert.set_pubkey(self.csr.get_pubkey())
|
||||
cert.add_extensions(self.csr.get_extensions())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue