Python web page to display SSL certificate status
It just feels like I wrote some eye searing python to cobble something together...I am not even sure if a "Web Framework" would help or frankly why...I've looked into some of them but it's not sinking in.


I think it would definitely be better then what you have currently

I can recommend flask, a small web microframework. 

Pretty easy to use and has plenty of features, it will handle serving the page, making nicely formatted html pages, handling routes.

If you want some pretty tables you could even use Flask-Table

But something simple as this should even work,

app.py

from flask import Flask, render_template
app = Flask(__name__)

@app.route('/')
def ssl_status():
    ssl_connections = [
        ["url.url", 165, "some-date-2019", "OK"]
    ]
    return render_template('ssl_status.html', ssl_connections=ssl_connections)

if __name__ == '__main__':
    app.run()


ssl_status.html

&lt;!doctype html&gt;
&lt;title&gt;SSL Status page&lt;/title&gt;
&lt;table&gt;
    {% for row in ssl_connections %}
    &lt;tr&gt;
        {% for item in row %}
        &lt;td&gt;{{ item }}&lt;/td&gt;
        {% endfor %}
    &lt;/tr&gt;
    {% endfor %}
&lt;/table&gt;


You'd need some .css probably to make the colors work, and some other stuff to make it look the same as your example.