Skip to content

Instantly share code, notes, and snippets.

View jdalegonzalez's full-sized avatar
💭
Building a Cybersecurity metrics platform at Axio

jdalegonzalez

💭
Building a Cybersecurity metrics platform at Axio
View GitHub Profile
@jdalegonzalez
jdalegonzalez / jwt_validator.py
Last active January 31, 2023 13:03
Uses the the python-jose package to decode and validate an amazon identity or access token.
#!/usr/bin/env python3
"""
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
@jdalegonzalez
jdalegonzalez / add_vpn_user
Last active January 9, 2017 18:58
Script to create the necessary client components for a strongswan vpn user including a client private key, client public key, client certificate, and osx mobileprofile. Automates the instructions provided at https://raymii.org/s/tutorials/IPSEC_vpn_with_Ubuntu_15.04.html and tested on a Digital Ocean Ubuntu instance. YMMV
#!/bin/bash
set -e
#
# Script taken in large part from the instructions provided here:
#
# https://raymii.org/s/tutorials/IPSEC_vpn_with_Ubuntu_15.04.html
#
# Thanks Remy van Elst. I appreciate the help.