<?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: OneView as Intermediate CA for iLO's in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175673#M7579</link>
    <description>&lt;P&gt;Hi Brad,&lt;/P&gt;&lt;P&gt;I was allready looking in to that, but is hard to find proper scripts which actually work.&lt;BR /&gt;I'm not a REST API or scripting Guru, so this is not a days work for me.&lt;/P&gt;&lt;P&gt;I also noticed an Automatic Certificate Enrollment in iLO5, however this requires Microsofts NDES to be deployed.&lt;BR /&gt;It only eases a little of the manual labor because in only automates the part of going through the CA server with the CSR and importing the signed certificate.&lt;/P&gt;&lt;P&gt;Will come back here if I have a working solution (could take a while ...)&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Martijn&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2022 15:38:39 GMT</pubDate>
    <dc:creator>Tinux</dc:creator>
    <dc:date>2022-10-12T15:38:39Z</dc:date>
    <item>
      <title>OneView as Intermediate CA for iLO's</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175603#M7569</link>
      <description>&lt;P&gt;Can OneView function as Intermediate CA for iLO's&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;A bit like vCenter does for its managed ESXi hosts.&lt;/P&gt;&lt;P&gt;If not, how do people bulk replace iLO certificate's with selfsigned one's ?&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;Martijn&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 04:40:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175603#M7569</guid>
      <dc:creator>Tinux</dc:creator>
      <dc:date>2022-10-13T04:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: OneView as Intermediate CA for iLO's</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175606#M7570</link>
      <description>&lt;P&gt;HPE OneView does not provide this feature but product management is investigating the topic and would always like to hear customer requirements around the certificate type/length/security/etc. required.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 14:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175606#M7570</guid>
      <dc:creator>DanCernese</dc:creator>
      <dc:date>2022-10-11T14:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: OneView as Intermediate CA for iLO's</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175670#M7577</link>
      <description>&lt;P&gt;You can use the OneView REST API to get a authentication id for the iLO, then use the iLO Redfish API to generate a CSR.&amp;nbsp; Submit that to your certificate signer.&amp;nbsp; Then upload the signed certificate.&amp;nbsp; You can put a group of your servers in a for loop around that and loop through a group of servers.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 15:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175670#M7577</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2022-10-12T15:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: OneView as Intermediate CA for iLO's</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175673#M7579</link>
      <description>&lt;P&gt;Hi Brad,&lt;/P&gt;&lt;P&gt;I was allready looking in to that, but is hard to find proper scripts which actually work.&lt;BR /&gt;I'm not a REST API or scripting Guru, so this is not a days work for me.&lt;/P&gt;&lt;P&gt;I also noticed an Automatic Certificate Enrollment in iLO5, however this requires Microsofts NDES to be deployed.&lt;BR /&gt;It only eases a little of the manual labor because in only automates the part of going through the CA server with the CSR and importing the signed certificate.&lt;/P&gt;&lt;P&gt;Will come back here if I have a working solution (could take a while ...)&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Martijn&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 15:38:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175673#M7579</guid>
      <dc:creator>Tinux</dc:creator>
      <dc:date>2022-10-12T15:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: OneView as Intermediate CA for iLO's</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175726#M7582</link>
      <description>&lt;P&gt;I had been researching it and this works (Note: I work from a Linux system):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Get a CSR from an iLO interface
SERVER=&amp;lt;server name&amp;gt;
ACTV=$(python -c "import urllib, sys; print urllib.quote(sys.argv[1])" "\"'serverName' = '${SERVER}'\"")
UUID=$(curl --silent --insecure --header "X-API-Version: ${currentVersion}" --header "auth: ${sessionID}" --request GET ${OneView}/rest/server-hardware?filter=${ACTV} | jq -r '.members[] | .uuid')
read iLOSSO iLOAuth &amp;lt;&amp;lt;&amp;lt; $(curl --silent --insecure --header "X-API-Version: ${currentVersion}" --header "auth: ${sessionID}" --request GET ${OneView}/rest/server-hardware/${UUID}/remoteConsoleUrl | \
   jq -r '.remoteConsoleUrl' | sed -e 's|hplocons|https|' -e 's|addr=||' -e 's|^\(.*\)&amp;amp;sessionkey=\(.*\)$|\1 \2|')
DATA=$(echo '{"City":"my-city","CommonName":'${SERVER}'","Country":"MC","OrgName":"MyOrg","OrgUnit":"orglist","State","LH","IncludeIP":true}' | jq -c '.')
curl --silent --insecure --header "X-Auth-Token: ${iLOAuth}" --header "Content-Type: application/json" \
   --data "${DATA}" --request POST ${iLOSSO}/redfish/v1/Managers/1/SecurityService/HttpsCert/Actions/HpeHttpsCert.GenerateCSR | jq -r '.'
CSR=$(curl --silent --insecure --header "X-Auth-Token: ${iLOAuth}" --request GET ${iLOSSO}/redfish/v1/Managers/1/SecurityService/HttpsCert | jq -r '.CertificateSigningRequest')
echo "${SERVER}, ${CSR}"&lt;/LI-CODE&gt;&lt;P&gt;Upload the CSR to your signing authority.&amp;nbsp; When signed, proceed:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Upload a signed server certificate to the iLO interface
SERVER=&amp;lt;server name&amp;gt;
ACTV=$(python -c "import urllib, sys; print urllib.quote(sys.argv[1])" "\"'serverName' = '${SERVER}'\"")
UUID=$(curl --silent --insecure --header "X-API-Version: ${currentVersion}" --header "auth: ${sessionID}" --request GET ${OneView}/rest/server-hardware?filter=${ACTV} | jq -r '.members[] | .uuid')
read iLOSSO iLOAuth &amp;lt;&amp;lt;&amp;lt; $(curl --silent --insecure --header "X-API-Version: ${currentVersion}" --header "auth: ${sessionID}" --request GET ${OneView}/rest/server-hardware/${UUID}/remoteConsoleUrl | \
   jq -r '.remoteConsoleUrl' | sed -e 's|hplocons|https|' -e 's|addr=||' -e 's|^\(.*\)&amp;amp;sessionkey=\(.*\)$|\1 \2|')
# Get signed certficate and put in a variable (copy and paste the certificate between the single quotes):
CRT=$(echo '' | sed -z 's|\n|\\n|g')
DATA=$(echo '{"Certificate"; "'${CRT}'"}' | jq -c '.')
curl --silent --insecure --header "X-Auth-Token: ${iLOAuth}" --header "Content-Type: application/json" \
   --data "${DATA}" --request POST ${iLOSSO}/redfish/v1/Managers/1/SecurityService/HttpsCert/Actions/HpeHttpsCert.ImportCertificate | jq -r '.'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See if that helps any?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 10:38:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175726#M7582</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2022-10-13T10:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: OneView as Intermediate CA for iLO's</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175750#M7584</link>
      <description>&lt;P&gt;Hi Brad,&lt;/P&gt;&lt;P&gt;Thanks for the setup in Python.&lt;BR /&gt;I generally work from Windows hosts because that's what I have to work with, but I do love Linux.&lt;/P&gt;&lt;P&gt;I did found a piece of PowerShell scripting on the web, but it was also riddled with typo's so I spend half a day troubleshooting, which got me at least to a point that I can make connection to an iLO.&lt;BR /&gt;I am not a daily user of both PS and Pyhton, but I try to do my best in understanding pieces of it.&lt;BR /&gt;By combining scripts from the web, and I noticed some interesting pieces in your script, I will sure get somewehere.&lt;/P&gt;&lt;P&gt;I will post my working version of a PS script in this thread once it's finished.&lt;/P&gt;&lt;P&gt;Thanks !&lt;BR /&gt;Martijn&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 14:43:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175750#M7584</guid>
      <dc:creator>Tinux</dc:creator>
      <dc:date>2022-10-13T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: OneView as Intermediate CA for iLO's</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175807#M7588</link>
      <description>&lt;P&gt;FYI, not python scripts, but BASH.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have one line of python in there, but that is only because someone else that knows python well helped me with it.&amp;nbsp; (apparently the forum will not let me put in a smiley face?)&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;You can always install the Windows Subsystem for Linux on your Windows server and run it from there?&lt;/P&gt;&lt;P&gt;I do see a bash to powershell converter on github.&amp;nbsp; You might give that a try or some other bash to powershell converter?&amp;nbsp; I did run a test on one of our iLOs with those script and was able to get a signed certificate uploaded to the iLO interface.&amp;nbsp; So, I know they work.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 09:22:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-as-intermediate-ca-for-ilo-s/m-p/7175807#M7588</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2022-10-14T09:22:35Z</dc:date>
    </item>
  </channel>
</rss>

