You can use either - as genpkey
serves the same function but provides more key type options than just RSA, but you’d also need to adjust the syntax.
You can just use genrsa
as it’ll work the same, but I’ve added to this to the list of things that should probably be wrapped in the sympl
command line.