<?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 Python HTTPS File Server for Windows in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/Python-HTTPS-File-Server-for-Windows/m-p/268393#M1367</link>
    <description>&lt;P class="lia-align-center"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sslwebserver.png" style="width: 200px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/32890iA80760CCD7CD2F87/image-size/small?v=v2&amp;amp;px=200" role="button" title="sslwebserver.png" alt="sslwebserver.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV class="container"&gt;
&lt;H1&gt;&lt;span class="lia-unicode-emoji" title=":locked:"&gt;🔒&lt;/span&gt;Python HTTPS File Server for Windows&lt;/H1&gt;
&lt;DIV class="intro"&gt;
&lt;P&gt;Inspired by&lt;STRONG&gt;&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670"&gt;@HeikoAnkenbrand&lt;/a&gt;&amp;nbsp;s&lt;/STRONG&gt; excellent &lt;A href="https://community.checkpoint.com/t5/SmartConsole-Extensions/HTTPS-Server-for-Smart-Console-Extensions/m-p/267897" target="_blank" rel="noopener"&gt;HTTPS Server for Smart Console Extensions&lt;/A&gt;, &lt;BR /&gt;I created a Python-based HTTPS web server that's simple, portable, and easy to customize.&lt;/P&gt;
&lt;/DIV&gt;
&lt;H2&gt;&lt;span class="lia-unicode-emoji" title=":open_book:"&gt;📖&lt;/span&gt; What is it?&lt;/H2&gt;
&lt;P&gt;A lightweight, self-contained HTTPS file server written in Python&lt;BR /&gt;that automatically generates self-signed SSL certificates&lt;BR /&gt;and serves files from a configurable directory.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;H2&gt;&lt;span class="lia-unicode-emoji" title=":gear:"&gt;⚙️&lt;/span&gt; How it Works&lt;/H2&gt;
&lt;P&gt;The script leverages Python's built-in &lt;CODE&gt;http.server&lt;/CODE&gt; and &lt;CODE&gt;ssl&lt;/CODE&gt; modules&lt;BR /&gt;to create a secure web server. On first run, it:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Checks for existing SSL certificates&lt;/LI&gt;
&lt;LI&gt;If not found, generates a self-signed certificate using OpenSSL (4096-bit RSA)&lt;/LI&gt;
&lt;LI&gt;Creates a &lt;CODE&gt;files&lt;/CODE&gt; subdirectory for serving content&lt;/LI&gt;
&lt;LI&gt;Generates a configuration dashboard (index.html) showing all settings&lt;/LI&gt;
&lt;LI&gt;Starts the HTTPS server on the configured port (default: 8443)&lt;/LI&gt;
&lt;/OL&gt;
&lt;H2&gt;&lt;span class="lia-unicode-emoji" title=":clipboard:"&gt;📋&lt;/span&gt; Configuration Options&lt;/H2&gt;
&lt;P&gt;All settings can be adjusted by modifying variables at the beginning of the script:&lt;/P&gt;
&lt;TABLE class="config-table"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH&gt;Variable&lt;/TH&gt;
&lt;TH&gt;Default Value&lt;/TH&gt;
&lt;TH&gt;Description&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;CODE&gt;SERVER_PORT&lt;/CODE&gt;&lt;/TD&gt;
&lt;TD&gt;8443&lt;/TD&gt;
&lt;TD&gt;TCP port for HTTPS connections&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;CODE&gt;SERVER_ADDRESS&lt;/CODE&gt;&lt;/TD&gt;
&lt;TD&gt;0.0.0.0&lt;/TD&gt;
&lt;TD&gt;Bind address (0.0.0.0 = all network interfaces)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;CODE&gt;SERVE_DIRECTORY&lt;/CODE&gt;&lt;/TD&gt;
&lt;TD&gt;files&lt;/TD&gt;
&lt;TD&gt;Subdirectory for files to serve (relative to script)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;CODE&gt;CERT_FILE&lt;/CODE&gt;&lt;/TD&gt;
&lt;TD&gt;server.crt&lt;/TD&gt;
&lt;TD&gt;SSL certificate filename&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;CODE&gt;KEY_FILE&lt;/CODE&gt;&lt;/TD&gt;
&lt;TD&gt;server.key&lt;/TD&gt;
&lt;TD&gt;Private key filename&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;CODE&gt;CERT_VALIDITY_DAYS&lt;/CODE&gt;&lt;/TD&gt;
&lt;TD&gt;365&lt;/TD&gt;
&lt;TD&gt;Certificate validity period in days&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;H2&gt;&lt;span class="lia-unicode-emoji" title=":package:"&gt;📦&lt;/span&gt; Prerequisites&lt;/H2&gt;
&lt;DIV class="highlight"&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Python 3.x&lt;/STRONG&gt; - Download from &lt;A href="https://www.python.org/downloads/" target="_blank" rel="noopener"&gt;python.org&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;OpenSSL&lt;/STRONG&gt; - Download from &lt;A href="https://slproweb.com/products/Win32OpenSSL.html" target="_blank" rel="noopener"&gt;Win32/Win64 OpenSSL&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Make sure OpenSSL is added to your system PATH during installation!&lt;/P&gt;
&lt;/DIV&gt;
&lt;H2&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Usage&lt;/H2&gt;
&lt;P&gt;&lt;STRONG&gt;Step 1:&lt;/STRONG&gt; Save the script as &lt;CODE&gt;https_fileserver.py&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt; Open a terminal/PowerShell in the script directory&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 3:&lt;/STRONG&gt; Run the server:&lt;/P&gt;
&lt;PRE&gt;python https_fileserver.py&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Step 4:&lt;/STRONG&gt; Place files in the &lt;CODE&gt;files&lt;/CODE&gt; subdirectory&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 5:&lt;/STRONG&gt; Access via browser at &lt;CODE&gt;&lt;A href="https://localhost:8443" target="_blank" rel="noopener"&gt;https://localhost:8443&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;H2&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt; Important Security Notice&lt;/H2&gt;
&lt;DIV class="highlight"&gt;
&lt;P&gt;&lt;STRONG&gt;This server is intended for personal and development use only!&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Do NOT use in production environments&lt;/LI&gt;
&lt;LI&gt;Do NOT expose to the public internet&lt;/LI&gt;
&lt;LI&gt;Browsers will show security warnings for self-signed certificates (this is normal)&lt;/LI&gt;
&lt;LI&gt;For production use, obtain certificates from trusted Certificate Authorities&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;DIV class="author"&gt;
&lt;P&gt;&lt;STRONG&gt;Author:&lt;/STRONG&gt; Vincent Bacher&lt;/P&gt;
&lt;P style="font-size: 0.9em;"&gt;Created with &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; for the CheckMates Community&lt;/P&gt;
&lt;P style="font-size: 0.85em; margin-top: 20px;"&gt;January 2026&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Sat, 07 Feb 2026 08:42:11 GMT</pubDate>
    <dc:creator>Vincent_Bacher</dc:creator>
    <dc:date>2026-02-07T08:42:11Z</dc:date>
    <item>
      <title>Python HTTPS File Server for Windows</title>
      <link>https://community.checkpoint.com/t5/Scripts/Python-HTTPS-File-Server-for-Windows/m-p/268393#M1367</link>
      <description>4</description>
      <pubDate>Sat, 07 Feb 2026 08:42:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Python-HTTPS-File-Server-for-Windows/m-p/268393#M1367</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-02-07T08:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Python HTTPS File Server for Windows</title>
      <link>https://community.checkpoint.com/t5/Scripts/Python-HTTPS-File-Server-for-Windows/m-p/268398#M1369</link>
      <description>&lt;P&gt;Yes sir...just tested it...great!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 12:51:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Python-HTTPS-File-Server-for-Windows/m-p/268398#M1369</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-01-23T12:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python HTTPS File Server for Windows</title>
      <link>https://community.checkpoint.com/t5/Scripts/Python-HTTPS-File-Server-for-Windows/m-p/268490#M1382</link>
      <description>&lt;P&gt;Well done!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 21:40:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Python-HTTPS-File-Server-for-Windows/m-p/268490#M1382</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2026-01-23T21:40:10Z</dc:date>
    </item>
  </channel>
</rss>

