Skip to content

Instantly share code, notes, and snippets.

View mermoldy's full-sized avatar

Serhii Babak mermoldy

View GitHub Profile
@mermoldy
mermoldy / self-signed-certificate-with-custom-ca.md
Created August 16, 2018 20:24 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import yaml
import json
import click
import requests
API_VERSION = 'v1beta0'
DEFAULTS = {
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import yaml
import json
import click
import requests
def load_user_spec(api_version):
resp = requests.get('https://my.scalr.net/api/user.{}.yml'
@mermoldy
mermoldy / fabfile.py
Last active June 23, 2016 09:22
fabric deployment
# coding: utf-8
import os
from fabric.api import run, env, cd, roles, task
env.roledefs['prod'] = ['myuser@host']
env.roledefs['staging'] = ['myuser@host']