<?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 Error when using the module cisco.ise.system_certificate_export in Code Exchange</title>
    <link>https://community.cisco.com/t5/code-exchange/error-when-using-the-module-cisco-ise-system-certificate-export/m-p/5226917#M134</link>
    <description>&lt;P&gt;I am using the cisco.ise.system_certificate_exportmodule in ansible to export the certificates , but I am getting the following error :&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9a in position 10: invalid start byte&lt;BR /&gt;fatal: [localhost]: FAILED! =&amp;gt; {"msg": "Unexpected failure during module execution: 'utf-8' codec can't decode byte 0x9a in position 10: invalid start byte", "stdout": ""}&lt;/P&gt;&lt;P&gt;this are the version I am using :&amp;nbsp; &amp;nbsp; ansible [core 2.18.0] ,&amp;nbsp;&amp;nbsp;cisco.ise 2.9.5 ,&amp;nbsp;&amp;nbsp;ciscoisesdk 2.2.3&lt;BR /&gt;This is the task i am using :&amp;nbsp;&lt;/P&gt;&lt;P&gt;- name: Export certificate&lt;BR /&gt;&amp;nbsp; cisco.ise.system_certificate_export_info:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ise_hostname: "{{ ise_host }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ise_username: "{{ ise_username }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ise_password: "{{ ise_password }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ise_verify: no&lt;BR /&gt;&amp;nbsp; &amp;nbsp; dirPath: "/corp/apps/network_ansible/backups/cisco_ise"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; export: "CERTIFICATE_WITH_PRIVATE_KEY"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; filename: "{{ ise_cert_name }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; hostName: "{{ ise_host }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; id: "{{ cert_id }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; password: "{{ ise_cert_export_pass }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; saveFile: true&lt;/P&gt;&lt;P&gt;Any thoughts&amp;nbsp; about why is not working&amp;nbsp;?&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2024 18:20:20 GMT</pubDate>
    <dc:creator>INGJONATAN82</dc:creator>
    <dc:date>2024-11-20T18:20:20Z</dc:date>
    <item>
      <title>Error when using the module cisco.ise.system_certificate_export</title>
      <link>https://community.cisco.com/t5/code-exchange/error-when-using-the-module-cisco-ise-system-certificate-export/m-p/5226917#M134</link>
      <description>&lt;P&gt;I am using the cisco.ise.system_certificate_exportmodule in ansible to export the certificates , but I am getting the following error :&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9a in position 10: invalid start byte&lt;BR /&gt;fatal: [localhost]: FAILED! =&amp;gt; {"msg": "Unexpected failure during module execution: 'utf-8' codec can't decode byte 0x9a in position 10: invalid start byte", "stdout": ""}&lt;/P&gt;&lt;P&gt;this are the version I am using :&amp;nbsp; &amp;nbsp; ansible [core 2.18.0] ,&amp;nbsp;&amp;nbsp;cisco.ise 2.9.5 ,&amp;nbsp;&amp;nbsp;ciscoisesdk 2.2.3&lt;BR /&gt;This is the task i am using :&amp;nbsp;&lt;/P&gt;&lt;P&gt;- name: Export certificate&lt;BR /&gt;&amp;nbsp; cisco.ise.system_certificate_export_info:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ise_hostname: "{{ ise_host }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ise_username: "{{ ise_username }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ise_password: "{{ ise_password }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ise_verify: no&lt;BR /&gt;&amp;nbsp; &amp;nbsp; dirPath: "/corp/apps/network_ansible/backups/cisco_ise"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; export: "CERTIFICATE_WITH_PRIVATE_KEY"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; filename: "{{ ise_cert_name }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; hostName: "{{ ise_host }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; id: "{{ cert_id }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; password: "{{ ise_cert_export_pass }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; saveFile: true&lt;/P&gt;&lt;P&gt;Any thoughts&amp;nbsp; about why is not working&amp;nbsp;?&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 18:20:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/error-when-using-the-module-cisco-ise-system-certificate-export/m-p/5226917#M134</guid>
      <dc:creator>INGJONATAN82</dc:creator>
      <dc:date>2024-11-20T18:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using the module cisco.ise.system_certificate_export</title>
      <link>https://community.cisco.com/t5/code-exchange/error-when-using-the-module-cisco-ise-system-certificate-export/m-p/5227171#M135</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/197905"&gt;@INGJONATAN82&lt;/a&gt;&amp;nbsp;it would appear from your error,&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;the&amp;nbsp;module is trying to decode a byte sequence that is not valid UTF-8, youget this error if the data being processed contains binary data or that its encoded in a different character set.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Make sure that the certificate data is being returned correctly and that its in a format that can be decoded as UTF-8, you might want to inspect the raw response from the API call.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 10:57:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/error-when-using-the-module-cisco-ise-system-certificate-export/m-p/5227171#M135</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2024-11-21T10:57:12Z</dc:date>
    </item>
  </channel>
</rss>

