Start a Conversation

Solved!

Go to Solution

1 Rookie

 • 

18 Posts

781

October 12th, 2021 06:00

iDrac API request CSR

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:

{  
         "CertificateCollection" :  
             {
             "@odata.id" :   ""
             },
         "City" :   "City" ,
         "CommonName" :   "cname" ,
         "Country" :   "US" ,
         "Organization" :   "company" ,
         "OrganizationalUnit" :   "IT" ,
         "State" :   "State"
}
 
no idea what should be @odata.id value - documentation is not very clear about this
 
 
thx
 

4 Operator

 • 

3K Posts

October 12th, 2021 06:00

Can you try with below data

{
"CommonName":" cname",
"Organization":" company",
"City":" City",
"State":" State",
"Country":" US",
"Email":"email",
  "OrganizationalUnit":" IT",
"CertificateCollection":"/redfish/v1/Managers/iDRAC.Embedded.1/NetworkProtocol/HTTPS/Certificates/"
}

1 Rookie

 • 

18 Posts

October 12th, 2021 07:00

great that helped  - only one correction - the ending "/" should be removed from this string

"CertificateCollection":"/redfish/v1/Managers/iDRAC.Embedded.1/NetworkProtocol/HTTPS/Certificates/"

No Events found!

Top