<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Import-HPEiLOCertificate Status ERROR in Server Management - Remote Server Management</title>
    <link>https://community.hpe.com/t5/server-management-remote-server/import-hpeilocertificate-status-error/m-p/7027399#M8241</link>
    <description>&lt;P&gt;I found in Import-HPiLOCertificate Help also an Parameter "-OutputType" and I used RawResponse and get Error message "Invalid certificate common name" . But as I wrote same certificate can be imported to iLO4 using webgui without problem.&lt;/P&gt;&lt;PRE&gt;-OutputType RawResponse

PS C:\&amp;gt; Import-HPEiLOCertificate -Connection $connection -Certificate $cert1 -OutputType RawResponse -Verbose
VERBOSE: Performing the operation "Import-HPEiLOCertificate" on target "IP: 1XX.XXX.XXX.XXX".
VERBOSE: [Import-HPEiLOCertificate] Executing the cmdlets with 1 task serially.
VERBOSE: [Import-HPEiLOCertificate][esx01.xxx]: Creating web request.
VERBOSE: [Import-HPEiLOCertificate][esx01.xxx]: Writting request stream.
VERBOSE: [Import-HPEiLOCertificate][esx01.xxx]: Getting web response.
VERBOSE: [Import-HPEiLOCertificate][esx01.xxx]: Processing RIBCL response.
Target: esx01.xxx
URL: https://esx01.xxx/ribcl
ContentType: text/xml
Response: &amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;RIBCL VERSION="2.23"&amp;gt;
&amp;lt;RESPONSE
    STATUS="0x0000"
    MESSAGE='No error'
     /&amp;gt;
&amp;lt;/RIBCL&amp;gt;
&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;RIBCL VERSION="2.23"&amp;gt;
&amp;lt;RESPONSE
    STATUS="0x0000"
    MESSAGE='No error'
     /&amp;gt;
&amp;lt;/RIBCL&amp;gt;
&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;RIBCL VERSION="2.23"&amp;gt;
&amp;lt;RESPONSE
    STATUS="0x0000"
    MESSAGE='No error'
     /&amp;gt;
&amp;lt;/RIBCL&amp;gt;
&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;RIBCL VERSION="2.23"&amp;gt;
&amp;lt;RESPONSE
    STATUS="0x0041"
    MESSAGE='Invalid certificate common name'
     /&amp;gt;
&amp;lt;/RIBCL&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ist this the "Subject" from the Certificate? It does look ok, and this (expect CN=) have all certificate in house.&lt;/P&gt;&lt;PRE&gt;certutil -dump shorthost.cer
.....
Subject:
    CN=esx01.xxx.some-domain.at
    OU=IT
    O=some-domain
    L=City
    S=City
    C=at
  Name Hash(sha1): XXXX
  Name Hash(md5): XXXX
...&lt;/PRE&gt;</description>
    <pubDate>Mon, 03 Dec 2018 13:54:17 GMT</pubDate>
    <dc:creator>Adis_S</dc:creator>
    <dc:date>2018-12-03T13:54:17Z</dc:date>
    <item>
      <title>Import-HPEiLOCertificate Status ERROR</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/import-hpeilocertificate-status-error/m-p/7027363#M8238</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Importing the Base64-encoded X.509 certificate with Import-HPEiLOCertificate give me the Status ERROR without not much information. And Certificate is not imported, but this CMDLets is needed to automatisation script.&lt;/P&gt;&lt;PRE&gt;Import-HPEiLOCertificate -Connection $connection -Certificate $cert1 -Verbose
VERBOSE: Performing the operation "Import-HPEiLOCertificate" on target "IP: 1XX.XX.XX.XXX".
VERBOSE: [Import-HPEiLOCertificate] Executing the cmdlets with 1 task serially.
VERBOSE: [Import-HPEiLOCertificate][esx01.xxx]: Creating web request.
VERBOSE: [Import-HPEiLOCertificate][esx01.xxx]: Writting request stream.
VERBOSE: [Import-HPEiLOCertificate][esx01.xxx]: Getting web response.
VERBOSE: [Import-HPEiLOCertificate][esx01.xxx]: Processing RIBCL response.

IP            Hostname                     Status StatusInfo                 
--            --------                     ------ ----------                 
1XX.XX.XX.XXX esx01.xxx  ERROR HPE.iLO.Response.StatusInfo&lt;/PRE&gt;&lt;P&gt;Taking same Certificate and pasting into iLO4 (Administration -&amp;gt; Security -&amp;gt; SSL Certificate -&amp;gt; Customize Certificate -&amp;gt; Import Certificate ) works fine.&lt;/P&gt;&lt;P&gt;I used also Enable-HPEiLOLog but I don't see any errors there. Here is part of log:&lt;/P&gt;&lt;PRE&gt;...
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][CreateWebRequest]: Begin
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][CreateWebRequest]: Creating web request.
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][CreateWebRequest]: Posting ribcl payload to https://esx01.xxx/ribcl
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][CreateWebRequest]: Writting request stream.
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][CreateWebRequest]: End
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][BuildCommand]: RIBCL command: &amp;lt;RIBCL VERSION="2.30"&amp;gt;
&amp;lt;LOGIN USER_LOGIN="XXXXX" PASSWORD="XXXX"&amp;gt;
  &amp;lt;RIB_INFO MODE="write"&amp;gt;
    &amp;lt;IMPORT_CERTIFICATE&amp;gt;-----BEGIN CERTIFICATE-----
..
..
..
-----END CERTIFICATE-----
&amp;lt;/IMPORT_CERTIFICATE&amp;gt;
      &amp;lt;RESET_RIB /&amp;gt;
    &amp;lt;/RIB_INFO&amp;gt;
  &amp;lt;/LOGIN&amp;gt;
&amp;lt;/RIBCL&amp;gt;
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][BuildCommand]: End
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][SendCommand]: Begin
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][SendCommand]: Getting web response.
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][SendCommand]: End
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][ProcessResponse]: Begin
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][ProcessResponse]: Processing RIBCL response.
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][ProcessRIBCLResponse]: Begin
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][ProcessRIBCLResponse]: Checking for RIBCL errors in the response and creating the error object if any.
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][ProcessRIBCLResponse]: End
HPE.Framework.Logging.Logger.LogMessage INFO - [Import-HPEiLOCertificate][esx01.xxx][ProcessResponse]: End&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using:&amp;nbsp; HPEiLOCmdlets 2.1.0.0 and the iLO4 have Firmware version 2.61&lt;/P&gt;&lt;P&gt;iLO4 have currenlty HPE self-signed Certificate and I would like to replace it with the new Certificate signed by Microsoft CA which is used in house. The CSR was generated with Start-HPEiLOCertificateSigningRequest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 09:54:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/import-hpeilocertificate-status-error/m-p/7027363#M8238</guid>
      <dc:creator>Adis_S</dc:creator>
      <dc:date>2018-12-03T09:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Import-HPEiLOCertificate Status ERROR</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/import-hpeilocertificate-status-error/m-p/7027369#M8239</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you tell me how you are reading the content of certificate from the external file. i.e., from $cert1.&lt;/P&gt;&lt;PRE&gt;Import-HPEiLOCertificate -Connection $connection -Certificate $cert1 -Verbose&lt;/PRE&gt;&lt;P&gt;I suspect that while doing get-content from certificate file&amp;nbsp; you should have missed -raw option. Try that i hope it should solve the issue if the certificate is valid. Refer Import-HPEiLOCertificate cmdlets Get-Help.&lt;/P&gt;&lt;P&gt;$cert1 = Get-Content -Raw -Path "&amp;lt;&amp;lt;Path of certficate&amp;gt;&amp;gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 10:34:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/import-hpeilocertificate-status-error/m-p/7027369#M8239</guid>
      <dc:creator>GokulKS</dc:creator>
      <dc:date>2018-12-03T10:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Import-HPEiLOCertificate Status ERROR</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/import-hpeilocertificate-status-error/m-p/7027385#M8240</link>
      <description>&lt;P&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1679211"&gt;@GokulKS&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I do use -Raw option by reading the content of the certificate file and the $cert1 does have same content as when I open the Certificate file with Notepad++, and it is base64-encoded X.509 Certificate.&lt;/P&gt;&lt;PRE&gt;$cert1 = Get-Content -Path "$scriptpath\$shorthost.cer" -Raw&lt;/PRE&gt;&lt;P&gt;I also tried as in Import-HPEiLOCertificate exmaples (help)&lt;/P&gt;&lt;PRE&gt;$cert = @"
-----BEGIN CERTIFICATE-----
....my certificate file copy/paste
-----END CERTIFICATE-----
"@

Import-HPEiLOCertificate -Connection $connection -Certificate $cert -Verbose&lt;/PRE&gt;&lt;P&gt;But I get again Status: ERROR and Certificate is not imported. Weird that there is no other Error message, not in Console or over HPELOLog function.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 11:55:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/import-hpeilocertificate-status-error/m-p/7027385#M8240</guid>
      <dc:creator>Adis_S</dc:creator>
      <dc:date>2018-12-03T11:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Import-HPEiLOCertificate Status ERROR</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/import-hpeilocertificate-status-error/m-p/7027399#M8241</link>
      <description>&lt;P&gt;I found in Import-HPiLOCertificate Help also an Parameter "-OutputType" and I used RawResponse and get Error message "Invalid certificate common name" . But as I wrote same certificate can be imported to iLO4 using webgui without problem.&lt;/P&gt;&lt;PRE&gt;-OutputType RawResponse

PS C:\&amp;gt; Import-HPEiLOCertificate -Connection $connection -Certificate $cert1 -OutputType RawResponse -Verbose
VERBOSE: Performing the operation "Import-HPEiLOCertificate" on target "IP: 1XX.XXX.XXX.XXX".
VERBOSE: [Import-HPEiLOCertificate] Executing the cmdlets with 1 task serially.
VERBOSE: [Import-HPEiLOCertificate][esx01.xxx]: Creating web request.
VERBOSE: [Import-HPEiLOCertificate][esx01.xxx]: Writting request stream.
VERBOSE: [Import-HPEiLOCertificate][esx01.xxx]: Getting web response.
VERBOSE: [Import-HPEiLOCertificate][esx01.xxx]: Processing RIBCL response.
Target: esx01.xxx
URL: https://esx01.xxx/ribcl
ContentType: text/xml
Response: &amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;RIBCL VERSION="2.23"&amp;gt;
&amp;lt;RESPONSE
    STATUS="0x0000"
    MESSAGE='No error'
     /&amp;gt;
&amp;lt;/RIBCL&amp;gt;
&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;RIBCL VERSION="2.23"&amp;gt;
&amp;lt;RESPONSE
    STATUS="0x0000"
    MESSAGE='No error'
     /&amp;gt;
&amp;lt;/RIBCL&amp;gt;
&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;RIBCL VERSION="2.23"&amp;gt;
&amp;lt;RESPONSE
    STATUS="0x0000"
    MESSAGE='No error'
     /&amp;gt;
&amp;lt;/RIBCL&amp;gt;
&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;RIBCL VERSION="2.23"&amp;gt;
&amp;lt;RESPONSE
    STATUS="0x0041"
    MESSAGE='Invalid certificate common name'
     /&amp;gt;
&amp;lt;/RIBCL&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ist this the "Subject" from the Certificate? It does look ok, and this (expect CN=) have all certificate in house.&lt;/P&gt;&lt;PRE&gt;certutil -dump shorthost.cer
.....
Subject:
    CN=esx01.xxx.some-domain.at
    OU=IT
    O=some-domain
    L=City
    S=City
    C=at
  Name Hash(sha1): XXXX
  Name Hash(md5): XXXX
...&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Dec 2018 13:54:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/import-hpeilocertificate-status-error/m-p/7027399#M8241</guid>
      <dc:creator>Adis_S</dc:creator>
      <dc:date>2018-12-03T13:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Import-HPEiLOCertificate Status ERROR</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/import-hpeilocertificate-status-error/m-p/7027468#M8242</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The error what you are getting is from iLO server and you need to check with iLO team on below error.&lt;/P&gt;&lt;PRE&gt;Invalid certificate common name'&lt;/PRE&gt;&lt;P&gt;I suspect "-" in the CN could be the issue which cmd line is not accepting but Web GUI. ( HPQLOCFG tool we use internally to send RIBCL xml request to iLO server). To confirm iLO issue you can download the HPQLOCFG tool and provide the signed certificate to iLO server to confirm its an iLO issue. But PowerShell cmdlets has nothing to do with this error. Let me know if you need more help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gokul&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 07:05:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/import-hpeilocertificate-status-error/m-p/7027468#M8242</guid>
      <dc:creator>GokulKS</dc:creator>
      <dc:date>2018-12-04T07:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Import-HPEiLOCertificate Status ERROR</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/import-hpeilocertificate-status-error/m-p/7027643#M8244</link>
      <description>&lt;P&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1679211"&gt;@GokulKS&lt;/a&gt;&lt;/P&gt;&lt;P&gt;How can it be iLO4 issue if the Import over iLO4 self does work by coping content of Certificate file and pasting into iLO4 egg:&amp;nbsp; iLO4 (Administration -&amp;gt; Security -&amp;gt; SSL Certificate -&amp;gt; Customize Certificate -&amp;gt; Import Certificate ) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 12:31:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/import-hpeilocertificate-status-error/m-p/7027643#M8244</guid>
      <dc:creator>Adis_S</dc:creator>
      <dc:date>2018-12-05T12:31:54Z</dc:date>
    </item>
  </channel>
</rss>

