<?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>article HTML5 Gateway: Replacing an expired certificate (Docker implementation) in PAM Self-Hosted Articles</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/html5-gateway-replacing-an-expired-certificate-docker/ta-p/1429584</link>
    <description>This article details the process to replace an expired certificate on an HTML5 Gateway that is a Docker implementation

&lt;H3&gt;Issue&lt;/H3&gt;
&lt;P&gt;1. Note the previously used 'docker run' command. It will be similar to&lt;/P&gt;&lt;P&gt;sudo docker run --restart unless-stopped -ti -p 443:8443 -v /opt/cert/:/opt/import:ro --cap-drop=all --cap-add={CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID} -e AcceptCyberArkEULA=yes -e GWCert=lab-html5.cer -e GWKey=lab-html5.key -e GWCAFile=cachain.pem -e EnableJWTValidation=no -e IgnorePSMCertificateErrors=yes --hostname lab-html5.timslab.tsawyer.local --name lab-html5.timslab.tsawyer.local cahtml5gw:12_2_5_8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the location of the certificates (in the above example, /opt/cert)&lt;/P&gt;&lt;P&gt;Note the GWCAFile used (in the above example, this is the GWCAFile parameter)&lt;/P&gt;&lt;P&gt;2. On the HTML5 gateway, stop and delete the current container&lt;/P&gt;&lt;P&gt;docker kill &amp;lt;container name&amp;gt;&lt;/P&gt;&lt;P&gt;docker rm &amp;lt;container name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where &amp;lt;container name&amp;gt; is the name of your HTML5 container&lt;/P&gt;&lt;P&gt;3. On the HTML5 gateway, run the following command:&lt;/P&gt;&lt;P&gt;openssl req -newkey rsa:2048 -nodes -keyout &amp;lt;path to private key&amp;gt; -out &amp;lt;path to CSR&amp;gt;&lt;/P&gt;&lt;P&gt;4. Take the new CSR and send to your CA for signing&lt;/P&gt;&lt;P&gt;5. Get the signed certificate from the CA and copy it to the HTML5 gateway&lt;/P&gt;&lt;P&gt;6. Make sure the new key and certificate are copied to the directory noted in the 'docker run' command&lt;/P&gt;&lt;P&gt;7. If the CA path (i.e. Root CA, intermediate CA) has changed, you will need to create a new PEM file containing the root and intermediate CA. Basically this is the Base 64 representation of all the CA certificates in a single file. The root CA should be the first in the file, followed by the intermediate CA. The filename will be used in the GWCAFile parameter (see step 1)&lt;/P&gt;&lt;P&gt;8. Start the docker container using the 'sudo docker run' command. It is recommended to run this interactively during testing. Once testing is complete and successful, you can stop and remove the container, then run a new container in the background - essentially, this is replacing the '-ti -p' with 'ti -d -p'&lt;/P&gt;
&lt;H3&gt;Environment&lt;/H3&gt;
PSM PSM HTML5 Gateway

&lt;H3&gt;Steps&lt;/H3&gt;
&lt;P&gt;&lt;STRONG&gt;1. &lt;/STRONG&gt;Note the previously used 'docker run' command. It will be similar to&lt;/P&gt;
&lt;P&gt;&lt;I&gt;sudo docker run --restart unless-stopped -ti -p 443:8443 -v /opt/cert/:/opt/import:ro --cap-drop=all --cap-add={CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID} -e AcceptCyberArkEULA=yes -e GWCert=lab-html5.cer -e GWKey=lab-html5.key -e GWCAFile=cachain.pem -e EnableJWTValidation=no -e IgnorePSMCertificateErrors=yes --hostname lab-html5.timslab.tsawyer.local --name lab-html5.timslab.tsawyer.local cahtml5gw:12_2_5_8&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;Note the location of the certificates (in the above example, /opt/cert)&lt;/P&gt;
&lt;P&gt;Note the GWCAFile used (in the above example, this is the GWCAFile parameter)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; On the HTML5 gateway, stop and delete the current container&lt;/P&gt;
&lt;P&gt;&lt;B&gt;docker kill &amp;lt;container name&amp;gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;docker rm &amp;lt;container name&amp;gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Where &amp;lt;container name&amp;gt; is the name of your HTML5 container&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;There are multiple options from here. see steps 3a-5a or 3b to 5b&lt;BR /&gt;&lt;STRONG&gt;3a&lt;/STRONG&gt;.&amp;nbsp; On the HTML5 gateway, run the following command:&lt;BR /&gt;openssl req -newkey rsa:2048 -nodes -keyout &amp;lt;path to private key&amp;gt; -out &amp;lt;path to CSR&amp;gt;&lt;BR /&gt;&lt;STRONG&gt;4a&lt;/STRONG&gt;. Take the new CSR and send to your CA for signing&lt;BR /&gt;&lt;STRONG&gt;5a&lt;/STRONG&gt;. Get the signed certificate from the CA and copy it to the HTML5 gateway&lt;BR /&gt;-----&lt;BR /&gt;&lt;STRONG&gt;3b.&lt;/STRONG&gt; On the HTML5 gateway, run the following command:&lt;BR /&gt;&lt;B&gt;openssl req -newkey rsa:2048 -nodes -keyout &amp;lt;path to private key&amp;gt; -out &amp;lt;path to CSR&amp;gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;4b.&lt;/STRONG&gt; Take the new CSR and send to your CA for signing.&lt;BR /&gt;&lt;STRONG&gt;5b.&lt;/STRONG&gt; Get the signed certificate from the CA and copy it to the HTML5 gateway.&lt;BR /&gt;------&lt;BR /&gt;&lt;STRONG&gt;6.&lt;/STRONG&gt; Make sure the new key and certificate are copied to the directory noted in the 'docker run' command.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;7.&lt;/STRONG&gt; If the CA path (i.e. Root CA, intermediate CA) has changed, you will need to create a new PEM file containing the root and intermediate CA. Basically this is the Base 64 representation of all the CA certificates in a single file. The root CA should be the first in the file, followed by the intermediate CA. The filename will be used in the GWCAFile parameter (see step 1)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;8.&lt;/STRONG&gt; Start the docker container using the &lt;B&gt;sudo docker run&lt;/B&gt;&amp;nbsp;command (see step 1). It is recommended to run this interactively during testing. Once testing is complete and successful, you can stop and remove the container, then run a new container in the background - essentially, this is replacing the '&lt;I&gt;-ti -p&lt;/I&gt;' with '&lt;I&gt;ti -d -p&lt;/I&gt;'&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2022 15:35:11 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2022-07-22T15:35:11Z</dc:date>
    <item>
      <title>HTML5 Gateway: Replacing an expired certificate (Docker implementation)</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/html5-gateway-replacing-an-expired-certificate-docker/ta-p/1429584</link>
      <description>This article details the process to replace an expired certificate on an HTML5 Gateway that is a Docker implementation

&lt;H3&gt;Issue&lt;/H3&gt;
&lt;P&gt;1. Note the previously used 'docker run' command. It will be similar to&lt;/P&gt;&lt;P&gt;sudo docker run --restart unless-stopped -ti -p 443:8443 -v /opt/cert/:/opt/import:ro --cap-drop=all --cap-add={CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID} -e AcceptCyberArkEULA=yes -e GWCert=lab-html5.cer -e GWKey=lab-html5.key -e GWCAFile=cachain.pem -e EnableJWTValidation=no -e IgnorePSMCertificateErrors=yes --hostname lab-html5.timslab.tsawyer.local --name lab-html5.timslab.tsawyer.local cahtml5gw:12_2_5_8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the location of the certificates (in the above example, /opt/cert)&lt;/P&gt;&lt;P&gt;Note the GWCAFile used (in the above example, this is the GWCAFile parameter)&lt;/P&gt;&lt;P&gt;2. On the HTML5 gateway, stop and delete the current container&lt;/P&gt;&lt;P&gt;docker kill &amp;lt;container name&amp;gt;&lt;/P&gt;&lt;P&gt;docker rm &amp;lt;container name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where &amp;lt;container name&amp;gt; is the name of your HTML5 container&lt;/P&gt;&lt;P&gt;3. On the HTML5 gateway, run the following command:&lt;/P&gt;&lt;P&gt;openssl req -newkey rsa:2048 -nodes -keyout &amp;lt;path to private key&amp;gt; -out &amp;lt;path to CSR&amp;gt;&lt;/P&gt;&lt;P&gt;4. Take the new CSR and send to your CA for signing&lt;/P&gt;&lt;P&gt;5. Get the signed certificate from the CA and copy it to the HTML5 gateway&lt;/P&gt;&lt;P&gt;6. Make sure the new key and certificate are copied to the directory noted in the 'docker run' command&lt;/P&gt;&lt;P&gt;7. If the CA path (i.e. Root CA, intermediate CA) has changed, you will need to create a new PEM file containing the root and intermediate CA. Basically this is the Base 64 representation of all the CA certificates in a single file. The root CA should be the first in the file, followed by the intermediate CA. The filename will be used in the GWCAFile parameter (see step 1)&lt;/P&gt;&lt;P&gt;8. Start the docker container using the 'sudo docker run' command. It is recommended to run this interactively during testing. Once testing is complete and successful, you can stop and remove the container, then run a new container in the background - essentially, this is replacing the '-ti -p' with 'ti -d -p'&lt;/P&gt;
&lt;H3&gt;Environment&lt;/H3&gt;
PSM PSM HTML5 Gateway

&lt;H3&gt;Steps&lt;/H3&gt;
&lt;P&gt;&lt;STRONG&gt;1. &lt;/STRONG&gt;Note the previously used 'docker run' command. It will be similar to&lt;/P&gt;
&lt;P&gt;&lt;I&gt;sudo docker run --restart unless-stopped -ti -p 443:8443 -v /opt/cert/:/opt/import:ro --cap-drop=all --cap-add={CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID} -e AcceptCyberArkEULA=yes -e GWCert=lab-html5.cer -e GWKey=lab-html5.key -e GWCAFile=cachain.pem -e EnableJWTValidation=no -e IgnorePSMCertificateErrors=yes --hostname lab-html5.timslab.tsawyer.local --name lab-html5.timslab.tsawyer.local cahtml5gw:12_2_5_8&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;Note the location of the certificates (in the above example, /opt/cert)&lt;/P&gt;
&lt;P&gt;Note the GWCAFile used (in the above example, this is the GWCAFile parameter)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; On the HTML5 gateway, stop and delete the current container&lt;/P&gt;
&lt;P&gt;&lt;B&gt;docker kill &amp;lt;container name&amp;gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;docker rm &amp;lt;container name&amp;gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Where &amp;lt;container name&amp;gt; is the name of your HTML5 container&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;There are multiple options from here. see steps 3a-5a or 3b to 5b&lt;BR /&gt;&lt;STRONG&gt;3a&lt;/STRONG&gt;.&amp;nbsp; On the HTML5 gateway, run the following command:&lt;BR /&gt;openssl req -newkey rsa:2048 -nodes -keyout &amp;lt;path to private key&amp;gt; -out &amp;lt;path to CSR&amp;gt;&lt;BR /&gt;&lt;STRONG&gt;4a&lt;/STRONG&gt;. Take the new CSR and send to your CA for signing&lt;BR /&gt;&lt;STRONG&gt;5a&lt;/STRONG&gt;. Get the signed certificate from the CA and copy it to the HTML5 gateway&lt;BR /&gt;-----&lt;BR /&gt;&lt;STRONG&gt;3b.&lt;/STRONG&gt; On the HTML5 gateway, run the following command:&lt;BR /&gt;&lt;B&gt;openssl req -newkey rsa:2048 -nodes -keyout &amp;lt;path to private key&amp;gt; -out &amp;lt;path to CSR&amp;gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;4b.&lt;/STRONG&gt; Take the new CSR and send to your CA for signing.&lt;BR /&gt;&lt;STRONG&gt;5b.&lt;/STRONG&gt; Get the signed certificate from the CA and copy it to the HTML5 gateway.&lt;BR /&gt;------&lt;BR /&gt;&lt;STRONG&gt;6.&lt;/STRONG&gt; Make sure the new key and certificate are copied to the directory noted in the 'docker run' command.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;7.&lt;/STRONG&gt; If the CA path (i.e. Root CA, intermediate CA) has changed, you will need to create a new PEM file containing the root and intermediate CA. Basically this is the Base 64 representation of all the CA certificates in a single file. The root CA should be the first in the file, followed by the intermediate CA. The filename will be used in the GWCAFile parameter (see step 1)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;8.&lt;/STRONG&gt; Start the docker container using the &lt;B&gt;sudo docker run&lt;/B&gt;&amp;nbsp;command (see step 1). It is recommended to run this interactively during testing. Once testing is complete and successful, you can stop and remove the container, then run a new container in the background - essentially, this is replacing the '&lt;I&gt;-ti -p&lt;/I&gt;' with '&lt;I&gt;ti -d -p&lt;/I&gt;'&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 15:35:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/html5-gateway-replacing-an-expired-certificate-docker/ta-p/1429584</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-07-22T15:35:11Z</dc:date>
    </item>
  </channel>
</rss>

