Skip to content

Instantly share code, notes, and snippets.

View vinodc's full-sized avatar

Vinod Chandru vinodc

  • San Francisco, CA
View GitHub Profile
@vinodc
vinodc / azure-key-credentials.py
Last active September 1, 2020 08:39
Python script to print out information to configure an Azure app's keyCredentials entry.
#!/usr/bin/env python3
import os
import sys
from base64 import b64encode
from uuid import uuid4
try:
from cryptography import x509
from cryptography.hazmat.backends import default_backend
@vinodc
vinodc / ke_config_skel.sh
Created June 27, 2019 00:06 — forked from david-thorman/ke_config_skel.sh
Kloudless Enterprise configuration file skeleton generator
#!/bin/bash
set -eu -o pipefail
gen_priv() {
openssl genrsa 2048 2> /dev/null
}
gen_pub() {
echo "${1}" | openssl rsa -pubout 2> /dev/null
}