Skip to content

Instantly share code, notes, and snippets.

View peterkuiper's full-sized avatar

Peter Kuiper peterkuiper

  • The Netherlands
View GitHub Profile
@peterkuiper
peterkuiper / boto3_hands_on.md
Created January 25, 2019 17:15 — forked from iMilnb/boto3_hands_on.md
Programmatically manipulate AWS resources with boto3 - a quick hands on

boto3 quick hands-on

This documentation aims at being a quick-straight-to-the-point-hands-on AWS resources manipulation with [boto3][0].

First of all, you'll need to install [boto3][0]. Installing it along with [awscli][1] is probably a good idea as

  • [awscli][1] is boto-based
  • [awscli][1] usage is really close to boto's
@peterkuiper
peterkuiper / revoke_user.sh
Created October 6, 2017 08:45 — forked from rynop/revoke_user.sh
revoke client cert
#!/bin/bash
function usage () {
echo "$0 [CA section name] [username]"
exit 1
}
if [ $# -ne 2 ]
then
usage
@peterkuiper
peterkuiper / gist:0ecde59130795e426d0472db564dc625
Created October 6, 2017 08:12 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt