mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #43575 from akissa/fix-csr-not-recreated-if-key-changes
Fix CSR not recreated if key changes
This commit is contained in:
commit
9dba34aa06
1 changed files with 2 additions and 0 deletions
|
@ -625,6 +625,8 @@ def read_csr(csr):
|
|||
# Get size returns in bytes. The world thinks of key sizes in bits.
|
||||
'Subject': _parse_subject(csr.get_subject()),
|
||||
'Subject Hash': _dec2hex(csr.get_subject().as_hash()),
|
||||
'Public Key Hash': hashlib.sha1(csr.get_pubkey().get_modulus())\
|
||||
.hexdigest()
|
||||
}
|
||||
|
||||
ret['X509v3 Extensions'] = _get_csr_extensions(csr)
|
||||
|
|
Loading…
Add table
Reference in a new issue