This is in the 6.0 beta (running latest development branches for each component).
Currently the 'pihole-FTL --help' command output shows this:
...
TLS X.509 certificate generator:
Generate a self-signed certificate suitable for SSL/TLS
and store it in outfile.
By default, this new certificate is based on the elliptic
curve secp521r1. If the optional flag [rsa] is specified,
an RSA (4096 bit) key will be generated instead.
Usage: pihole-FTL --gen-x509 outfile [rsa]
...
It'd be great to see use ability to use that optional parameter be included in the --help output as well (and any other documentation being created), as I didn't realize it was possible until I manually searched the Pi-hole Discourse and found a post that mentioned the above PR (PiHole v6 & Firefox android - #5 by DL6ER).
Just a suggestion to make it more clear what you can do with this command! It's also already shown in the --read-x509 option that you can specify an optional domain parameter.
I also wanted to take the opportunity to give some praise:
The more I've explored all the new functionality in 6.0, the more I'm impressed and the more I'm excited for it to be GA for everyone! Awesome work! I'm proud to continue to support and advocate for the use of Pi-hole!
Thanks as always for all your amazing work on this project!