mtalas

updated

5 years ago

M

mtalas

1 Rookie

•

18 Posts

0

880

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
 
  • DELL-Shine K

    6 Operator

    •

    3042 Posts

    692

    1

    Posted 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/"
    }
  • mtalas

    1 Rookie

    •

    18 Posts

    688

    0

    Posted 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/"