community.crypto collection available on galaxy provides a functionality to get the certificate which is not available in the 'redhat.rhel_system_roles' certified collection.
GALAXY:
https://docs.ansible.com/ansible/latest/collections/community/crypto/get_certificate_module.html
CONSOLE.REDHAT.COM
Ask:
Similar functionality should exist in the certificated collection as well.