Hi Dick,

> I am moving some older code that uses openssl shell commands to use
> the newer community crypto OpenSSL ansible modules. Most of that works
> well.
> However, I have this task to find the issuer's hash:
> 
> shell: echo "{{ tls_cert_crt }}" | openssl x509 -noout -issuer_hash
> 
> I don't see any way of doing this using the community.crypto modules.
> I've looked at community.crypto.x509_certificate_info but I don't see
> this in the returned results.
> Does anyone have a suggestion?

I haven't checked, but if the issuer/subject hash for certificates is
similar to the one for CRLs, this unfortunately isn't easy to implement
(using the library we're using). Or at least that used to be the case
when I last checked this ~10 months ago :) The issue where it was
discussed is
https://github.com/ansible-collections/community.crypto/issues/200

Cheers,
Felix


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20220213195633.599334f5%40rovaniemi.

Reply via email to