For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| #!/usr/bin/env python3 | |
| # How to use: | |
| # | |
| # Ubuntu 16.04: apt install -y python-boto OR apt install -y python3-boto | |
| # | |
| # Specify the default profile on aws/boto profile files or use the optional AWS_PROFILE env var: | |
| # AWS_PROFILE=example ./dehydrated -c -d example.com -t dns-01 -k /etc/dehydrated/hooks/route53.py | |
| # | |
| # Manually specify hosted zone: |
| # MIT License | |
| # Copyright (c) 2016 Chandler Abraham | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |
| dn: cn=config | |
| objectClass: olcGlobal | |
| cn: config | |
| olcArgsFile: /home/matt/ldap/proxy/slapd.args | |
| olcPidFile: /home/matt/ldap/proxy/slapd.pid | |
| dn: cn=schema,cn=config | |
| objectClass: olcSchemaConfig | |
| cn: schema |
| class Ansible < Formula | |
| desc "Automate deployment, configuration, and upgrading" | |
| homepage "https://www.ansible.com/" | |
| url "http://releases.ansible.com/ansible/ansible-2.1.1.0-0.5.rc5.tar.gz" | |
| sha256 "2e6dbe03098f860e1b1829546d2dbbb6d617d2884c008372d40278f863541c3f" | |
| head "https://github.com/ansible/ansible.git", :branch => "devel" | |
| # bottle do | |
| # cellar :any |
| #!/bin/sh | |
| HOST=$1 | |
| /etc/init.d/denyhosts stop | |
| cd /var/lib/denyhosts | |
| for i in `ls`; do mv $i $i.old; grep -v $HOST $i.old >> $i; done | |
| cp /etc/hosts.deny /tmp/hosts.deny |
| from geventwebsocket.handler import WebSocketHandler | |
| from gevent.pywsgi import WSGIServer | |
| from flask import Flask, request, render_template | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def index(): | |
| return render_template('index.html') |