<?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 CG WAF Agent mTLS Configuration in WAF</title>
    <link>https://community.checkpoint.com/t5/WAF/CG-WAF-Agent-mTLS-Configuration/m-p/231324#M269</link>
    <description>&lt;P&gt;&lt;STRONG&gt;mTLS&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;CG WAF OVA Agent Only vSphere/vCenter Deployment&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;mTLS Steps:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Requirements&lt;/STRONG&gt; - Obtain rootCA.crt&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Phase#1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Copying the rootCA.crt to the docker container.&lt;BR /&gt;1. SSH to the OVA Instance&lt;BR /&gt;2. docker ps -a # To see all containers such as cp_nginx_gaia&lt;BR /&gt;3. docker exec -it cp_nginx_gaia sh #access the docker containers with shell&lt;BR /&gt;4. cd /etc/nginx/conf.d &lt;BR /&gt;5. ls -ll #To view your domain name conf file&lt;BR /&gt;example: 443_example.com.conf&lt;BR /&gt;6. cat 443_example.com.conf #to view the path of where the ssl cert directory is located.&lt;/P&gt;
&lt;P&gt;example: ssl_certificate /etc/cp/rpmanager/manualCerts/&lt;/P&gt;
&lt;P&gt;7. Using WINSCP, SCP to the OVA agent and copy the rootCA.crt to the path in step 6, /etc/cp/&lt;BR /&gt;rpmanager/manualCerts/&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Phase#2&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Adding the location file and server block to the Check Point UI&lt;BR /&gt;1. Create 2 txt files for the location and server block. Pay attention to any spaces at the end of the last character and &lt;BR /&gt;delete them.&lt;BR /&gt;Save file as locationblock.txt&lt;BR /&gt;if ($ssl_client_verify != SUCCESS) {&lt;BR /&gt;return 403;&lt;BR /&gt;}&lt;BR /&gt;Save file as serverblock.txt # Pay attention to any spaces at the end of the last character and delete them.&lt;BR /&gt;ssl_client_certificate /etc/cp/rpmanager/manualCerts/rootCA.crt; &lt;BR /&gt;ssl_verify_client on; # or optional&lt;/P&gt;
&lt;P&gt;1. Logon to the CHKP Portal&amp;gt;CloudGuard&amp;gt;WAF&amp;gt;Assets&amp;gt;Your domain asset&lt;BR /&gt;2. Under the General tab, click on Advanced below the Reverse Proxy Section&lt;BR /&gt;3. Click on Additional Settings&lt;BR /&gt;4. Add a checkmark for Additional location block and upload the your locationblock.txt file.&lt;BR /&gt;5. Add a checkmark for Additional server block and upload the your serverblock.txt file.&lt;BR /&gt;6. Enforce &lt;BR /&gt;You should not see any critical events in the Asset event section if done properly.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Phase3#&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Verify that the location and server files were added to /etc/nginx/conf.d/443_example.com.conf&lt;BR /&gt;1. Connect to the docker container as you did in Phase#1, step3&lt;BR /&gt;2. cat /etc/nginx/conf.d/443_example.com.conf #to view that the file includes the location and server block sections&lt;BR /&gt;Example: You will see this for the location in the file&lt;BR /&gt;include /etc/cp/conf/rpmanager/include/example_-_mTLS_additional_location_config.conf;&lt;BR /&gt;You will see this for the server in the file&lt;BR /&gt;include /etc/cp/conf/rpmanager/include/example_-_mTLS_additional_server_config.conf;&lt;/P&gt;
&lt;P&gt;3. To actually see that the settings for the 2 files in Phase2#, step1 were added, do the following:&lt;BR /&gt;cat /etc/cp/conf/rpmanager/include/example_-_mTLS_additional_server_config.conf&lt;BR /&gt;Output: ssl_client_certificate /etc/cp/rpmanager/manualCerts/rootCA.crt;&lt;BR /&gt;ssl_verify_client on;&lt;BR /&gt;cat /etc/cp/conf/rpmanager/include/example_-_mTLS_additional_location_config.conf&lt;BR /&gt;Output: if ($ssl_client_verify != SUCCESS) {&lt;BR /&gt;return 403;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 06:30:53 GMT</pubDate>
    <dc:creator>para92</dc:creator>
    <dc:date>2024-10-31T06:30:53Z</dc:date>
    <item>
      <title>CG WAF Agent mTLS Configuration</title>
      <link>https://community.checkpoint.com/t5/WAF/CG-WAF-Agent-mTLS-Configuration/m-p/231324#M269</link>
      <description>&lt;P&gt;&lt;STRONG&gt;mTLS&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;CG WAF OVA Agent Only vSphere/vCenter Deployment&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;mTLS Steps:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Requirements&lt;/STRONG&gt; - Obtain rootCA.crt&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Phase#1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Copying the rootCA.crt to the docker container.&lt;BR /&gt;1. SSH to the OVA Instance&lt;BR /&gt;2. docker ps -a # To see all containers such as cp_nginx_gaia&lt;BR /&gt;3. docker exec -it cp_nginx_gaia sh #access the docker containers with shell&lt;BR /&gt;4. cd /etc/nginx/conf.d &lt;BR /&gt;5. ls -ll #To view your domain name conf file&lt;BR /&gt;example: 443_example.com.conf&lt;BR /&gt;6. cat 443_example.com.conf #to view the path of where the ssl cert directory is located.&lt;/P&gt;
&lt;P&gt;example: ssl_certificate /etc/cp/rpmanager/manualCerts/&lt;/P&gt;
&lt;P&gt;7. Using WINSCP, SCP to the OVA agent and copy the rootCA.crt to the path in step 6, /etc/cp/&lt;BR /&gt;rpmanager/manualCerts/&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Phase#2&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Adding the location file and server block to the Check Point UI&lt;BR /&gt;1. Create 2 txt files for the location and server block. Pay attention to any spaces at the end of the last character and &lt;BR /&gt;delete them.&lt;BR /&gt;Save file as locationblock.txt&lt;BR /&gt;if ($ssl_client_verify != SUCCESS) {&lt;BR /&gt;return 403;&lt;BR /&gt;}&lt;BR /&gt;Save file as serverblock.txt # Pay attention to any spaces at the end of the last character and delete them.&lt;BR /&gt;ssl_client_certificate /etc/cp/rpmanager/manualCerts/rootCA.crt; &lt;BR /&gt;ssl_verify_client on; # or optional&lt;/P&gt;
&lt;P&gt;1. Logon to the CHKP Portal&amp;gt;CloudGuard&amp;gt;WAF&amp;gt;Assets&amp;gt;Your domain asset&lt;BR /&gt;2. Under the General tab, click on Advanced below the Reverse Proxy Section&lt;BR /&gt;3. Click on Additional Settings&lt;BR /&gt;4. Add a checkmark for Additional location block and upload the your locationblock.txt file.&lt;BR /&gt;5. Add a checkmark for Additional server block and upload the your serverblock.txt file.&lt;BR /&gt;6. Enforce &lt;BR /&gt;You should not see any critical events in the Asset event section if done properly.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Phase3#&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Verify that the location and server files were added to /etc/nginx/conf.d/443_example.com.conf&lt;BR /&gt;1. Connect to the docker container as you did in Phase#1, step3&lt;BR /&gt;2. cat /etc/nginx/conf.d/443_example.com.conf #to view that the file includes the location and server block sections&lt;BR /&gt;Example: You will see this for the location in the file&lt;BR /&gt;include /etc/cp/conf/rpmanager/include/example_-_mTLS_additional_location_config.conf;&lt;BR /&gt;You will see this for the server in the file&lt;BR /&gt;include /etc/cp/conf/rpmanager/include/example_-_mTLS_additional_server_config.conf;&lt;/P&gt;
&lt;P&gt;3. To actually see that the settings for the 2 files in Phase2#, step1 were added, do the following:&lt;BR /&gt;cat /etc/cp/conf/rpmanager/include/example_-_mTLS_additional_server_config.conf&lt;BR /&gt;Output: ssl_client_certificate /etc/cp/rpmanager/manualCerts/rootCA.crt;&lt;BR /&gt;ssl_verify_client on;&lt;BR /&gt;cat /etc/cp/conf/rpmanager/include/example_-_mTLS_additional_location_config.conf&lt;BR /&gt;Output: if ($ssl_client_verify != SUCCESS) {&lt;BR /&gt;return 403;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 06:30:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/WAF/CG-WAF-Agent-mTLS-Configuration/m-p/231324#M269</guid>
      <dc:creator>para92</dc:creator>
      <dc:date>2024-10-31T06:30:53Z</dc:date>
    </item>
  </channel>
</rss>

