Can you try with below data
Hello,  im just trying to create CSR request via API on iDrac 9 but need some guidance here  using the following API /redfish/v1/CertificateService/Actions/CertificateService.GenerateCSR with the body:
iDrac API request CSR