I am developing a web application on localhost with domains and sub-domains and I would like to use a HTTPS connection. On my Mac OS, in order to enable SSL, I need to set Apache correctly, so I followed some guide to accomplish part of that.
Now it is time to choose a certificate in order to test HTTPS requests. I seen the cacert.pem, but I don't know how to use that and for what it is used (can you explain to me some about its usage?)...
So, is it possible to use the
cacert.pem (see the link) for all my domains and subdomains (maybe, as a wildcard certificate) on localhost?
If so, how to do that? What certificate I have to take and use?
If no, what I need to do in order to use a wildcard certificate for all my domains and subdomains on localhost?
Of course those certificates must be accepted by browsers and working for HTTPS connection between my domains.