Skip to content

Commit

Permalink
Tweaking web stub app, icons for certificates, serve PEM correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
cortesi committed Jan 5, 2014
1 parent a49115a commit e31fc8a
Show file tree
Hide file tree
Showing 11 changed files with 1,779 additions and 7 deletions.
15 changes: 13 additions & 2 deletions libmproxy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ def index():
return flask.render_template("index.html", section="home")


@mapp.route("/certs")
def certs():
@mapp.route("/cert/pem")
def certs_pem():
p = master().server.config.cacert
return flask.Response(open(p).read(), mimetype='application/x-x509-ca-cert')


@mapp.route("/cert/p12")
def certs_p12():
return flask.render_template("certs.html", section="certs")


@mapp.route("/cert/cer")
def certs_cer():
return flask.render_template("certs.html", section="certs")
2 changes: 1 addition & 1 deletion libmproxy/static/bootstrap.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit e31fc8a

Please sign in to comment.