I am trying to use the HPE PS Module to request and install a certificate on a newly provisioned DL380 G10 server but I am getting the error below.
I know that the problem is not the code or the cert because I imported the same cert manually through the ILO GUI and worked:
$ImportResult = Import-HPEiLOCertificate -Connection $Conn -Certificate $ILOCERTFileName -OutputType RawResponse -Verbose
VERBOSE: Performing the operation "Import-HPEiLOCertificate" on target "IP: x.x.x.x".
VERBOSE: [Import-HPEiLOCertificate] Executing the cmdlets with 1 task serially.
VERBOSE: [Import-HPEiLOCertificate][x.x.x.x]: Creating Redfish request.
VERBOSE: [Import-HPEiLOCertificate][x.x.x.x]: Sending Redfish request to PATCH/POST/DELETE the JSON payload.
VERBOSE: [Import-HPEiLOCertificate][x.x.x.x]: Processing JSON response.
PS > $ImportResult | fl *
Target: x.x.x.x
ContentType: application/json
Response: {"error":{"code":"iLO.0.10.ExtendedInfo","message":"See @Message.ExtendedInfo for more information.","@Message.ExtendedInfo":[{"MessageId":"iLO.2.4.ImportCertif
icateFailed"}]}}