- Community Home
- >
- Servers and Operating Systems
- >
- ProLiant
- >
- ProLiant Servers (ML,DL,SL)
- >
- Import-HPEiLOCertificate ERROR without details
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-31-2018 10:29 AM
12-31-2018 10:29 AM
Import-HPEiLOCertificate ERROR without details
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"}]}}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-02-2019 12:59 AM
01-02-2019 12:59 AM
Re: Import-HPEiLOCertificate ERROR without details
Hi,
Please raise a support ticket with HPE, Looks like this need an investigation.
Cheers.
I work for HPE.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-02-2019 02:32 AM
01-02-2019 02:32 AM
Re: Import-HPEiLOCertificate ERROR without details
Hi,
I have few questions based on your script command you posted.
1) Why are you using -OutputType RawResponse ? If its for troubleshooting then fine otherwise don't use as it will not hit the iLO server it just gives the json response data.
2) Did you use -raw option when reading the certificate file content for $ILOCERTFileName. If not please use it in your get-conent command otherwise it may not work. I assume you have the certificate file content stored in the $ILOCERTFileName variable.
Please check these and come back with your results.
Thanks,
Gokul
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-03-2019 11:59 AM - edited 01-03-2019 12:06 PM
01-03-2019 11:59 AM - edited 01-03-2019 12:06 PM
Re: Import-HPEiLOCertificate ERROR without details
Thanks,
2. About the variable - it didnt occur to me that the cmdlet was expecting actual cert content instead of a filename, I'll try that!
1. 'rawresponse' I put afterwards just hoping to get more info on the 2nd or 3rd attempt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-17-2019 02:00 AM
01-17-2019 02:00 AM
Re: Import-HPEiLOCertificate ERROR without details
I have this also and was reported Import-HPEiLOCertificate Status ERROR
Also in that link is output when using -OutputType RawResponse and RawRequest
Import-HPEiLOCertificate -Connection $connection -Certificate $cert1 -OutputType RawResponse -Verbose
Import-HPEiLOCertificate -Connection $connection -Certificate $cert1 -OutputType RawRequest -Verbose
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-31-2019 03:36 AM
01-31-2019 03:36 AM
Re: Import-HPEiLOCertificate ERROR without details
In our case it seems our Certificate are "big" length over 3052, and iLO3/iLO4/iLO5 supports up to 3KB (User Guide), and also we have Windows EOL in our certificate file (CR+LF). You can for example use Notepad++ to convert to UNIX (LF) [Notepad++ | Edit | EOL Conversion | Unix (LF) ] or below PowerShell cmdlets (credits HPE) to do it with powershell, after that we were able to import Certificate to iLO5 (over redfish) but not on iLO4 (Gen8/Gen9 servers)
Please note it will override the original file so make a copy.
$path = "<C:\Temp\somecert.cer>" (Get-Content $path -Raw).Replace("`r`n","`n").Trim()| Set-Content $path -Force -NoNewline
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP