Self Sign certificate – Generate and OpenSSL certificates based on existing Root ca

Hi,
I need to generate self sign certificate based on existing Root CA.
How can i do this?
i noticed below module → x509_certificate – Generate and/or check OpenSSL certificates
But i didn’t understand how can i generate ssl certificate based on existing root cert ??

Thanks !!

Hi,
I need to generate self sign certificate based on existing Root CA.

This doesn’t make sense.
It’s either a self signed certificate, or a certificate that is signed by a CA.

So, what do you mean?

a certificate that is signed by a CA that already exist (including ca.key and ca.crt)…

Check the second example at the bottom of
https://docs.ansible.com/ansible/latest/collections/community/crypto/x509_certificate_module.html