<?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: KeyTab File Base64 encoding for HPeILO PowerShell Kerberos Configuration in Server Management - Remote Server Management</title>
    <link>https://community.hpe.com/t5/server-management-remote-server/keytab-file-base64-encoding-for-hpeilo-powershell-kerberos/m-p/7083196#M8623</link>
    <description>&lt;P&gt;Please refer to the below Advisory,&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&amp;amp;docId=emr_na-a00088213en_us" target="_blank" rel="noopener"&gt;https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&amp;amp;docId=emr_na-a00088213en_us&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Refer to the User Guide at:&amp;nbsp;&lt;STRONG&gt;Configuring Kerberos authentication settings in iLO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://support.hpe.com/hpesc/public/docDisplay?docId=a00018324en_us" target="_blank" rel="noopener"&gt;https://support.hpe.com/hpesc/public/docDisplay?docId=a00018324en_us&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Let us know if any user guide is being followed, if yes, please share the link for the User Guide that is being followed.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Sun, 22 Mar 2020 05:52:19 GMT</pubDate>
    <dc:creator>DANDKS</dc:creator>
    <dc:date>2020-03-22T05:52:19Z</dc:date>
    <item>
      <title>KeyTab File Base64 encoding for HPeILO PowerShell Kerberos Configuration</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/keytab-file-base64-encoding-for-hpeilo-powershell-kerberos/m-p/7082243#M8619</link>
      <description>&lt;P&gt;I've been going down the road to enable Kerberos "Zero Auth" on our HPE Servers' ILO.&lt;BR /&gt;I've created the Computer Object in AD, added the SPNs, created the KeyTab and configured the Kerberos Auth config. Uploading the KeyTab via the Browser works fine and enables SSO.&lt;BR /&gt;Now wanting to automate this, using the HPeILO-CMDlets, everything works well except uploading the KeyTab file.&lt;BR /&gt;Apparently HPe expects this as Base64:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;-Keytab &amp;lt;string[]&amp;gt; Specifies the contents of the keytab file which is a binary file containing pairs of principals and encrypted passwords. In the Windows environment, the keytab file is generated with a ktpass utility. After generating a binary keytab file using the appropriate utility, use a Base64 encoder to convert the binary file to ASCII format. Place the Base64 contents between: -----BEGIN KEYTAB----- and -----END KEYTAB-----.&amp;lt;/string[]&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So I took the ktpass keytab and parsed this to Binary then to Base64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;$keytab = Get-Content .\ILO.keytab
$keytab looks like this:
&amp;#5;&amp;#2; U &amp;#2;
DOMAIN.LOCAL &amp;#4;HTTP &amp;#22;hostname.domain.local &amp;#3; &amp;#3; &amp;#23; &amp;#16;V&amp;#12;óíÈË&amp;#17; –­­±°Ñ¶Š

$Bytes = [System.Text.Encoding]::Unicode.GetBytes($keytab)
$keytabBase64 =[Convert]::ToBase64String($Bytes)
$keytabBase64
$keytabUpload =@"
-----BEGIN KEYTAB-----
$keytabBase64
-----END KEYTAB-----
"@&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Trying to upload like so&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;$session | Set-HPEiLOKerberosConfig -KerberosEnabled Yes -Realm DOMAIN.LOCAL -KDCAddress DOMAIN.LOCAL -KDCPort 88 -Keytab $keytabUpload&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm getting the following Error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Keytab Error, Keytab not properly encoded.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Again, using the same, original ILO.keytab and uploading it into the Config via the Web UI works. So the original file is good.&lt;BR /&gt;I assume I'm doing something wrong with the base64 encoding but I'm not sure what. Any help is greatly appreciated &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 15:44:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/keytab-file-base64-encoding-for-hpeilo-powershell-kerberos/m-p/7082243#M8619</guid>
      <dc:creator>Teemoe</dc:creator>
      <dc:date>2020-03-11T15:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: KeyTab File Base64 encoding for HPeILO PowerShell Kerberos Configuration</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/keytab-file-base64-encoding-for-hpeilo-powershell-kerberos/m-p/7083196#M8623</link>
      <description>&lt;P&gt;Please refer to the below Advisory,&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&amp;amp;docId=emr_na-a00088213en_us" target="_blank" rel="noopener"&gt;https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&amp;amp;docId=emr_na-a00088213en_us&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Refer to the User Guide at:&amp;nbsp;&lt;STRONG&gt;Configuring Kerberos authentication settings in iLO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://support.hpe.com/hpesc/public/docDisplay?docId=a00018324en_us" target="_blank" rel="noopener"&gt;https://support.hpe.com/hpesc/public/docDisplay?docId=a00018324en_us&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Let us know if any user guide is being followed, if yes, please share the link for the User Guide that is being followed.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 05:52:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/keytab-file-base64-encoding-for-hpeilo-powershell-kerberos/m-p/7083196#M8623</guid>
      <dc:creator>DANDKS</dc:creator>
      <dc:date>2020-03-22T05:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: KeyTab File Base64 encoding for HPeILO PowerShell Kerberos Configuration</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/keytab-file-base64-encoding-for-hpeilo-powershell-kerberos/m-p/7083318#M8624</link>
      <description>&lt;P&gt;Found a Solution thanks to Reddit.&lt;/P&gt;&lt;P&gt;Get-Content has a switch to import straight as Byte, which can be turned into Base64 and then uploaded using the HPEILO CMDLets:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$keytab = Get-Content .\$ILO.keytab -Encoding Byte

$keytabBase64 =[Convert]::ToBase64String($keytab)

$keytabBase64

$keytabUpload ="-----BEGIN KEYTAB-----

$keytabBase64

-----END KEYTAB-----"

$session | Set-HPEiLOKerberosConfig -KerberosEnabled Yes -Realm DOMAIN.COM -KDCAddress DOMAIN.COM -KDCPort 88 -Keytab $keytabUpload&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Mar 2020 12:23:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/keytab-file-base64-encoding-for-hpeilo-powershell-kerberos/m-p/7083318#M8624</guid>
      <dc:creator>Teemoe</dc:creator>
      <dc:date>2020-03-24T12:23:17Z</dc:date>
    </item>
  </channel>
</rss>

