For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
I hereby claim:
To claim this, I am signing this object:
Sometimes a python script will simply hang forever with no indication of where things went wrong. Perhaps it's polling a service that will never return a value that allows the program to move forward. Here's a way to see where the program is currently stuck.
Install gdb.
# Redhat, CentOS, etc
from sseclient import SSEClient | |
import requests | |
from queue import Queue | |
import json | |
import threading | |
import socket | |
class ClosableSSEClient(SSEClient): |
BUCKET = 'your-bucket-here' # protocol prefix like s3://your-bucket-here is not required | |
import boto3 | |
s3 = boto3.resource('s3') | |
bucket = s3.Bucket(BUCKET) | |
bucket.object_versions.delete() | |
# if you want to delete the now-empty bucket as well, uncomment this line: | |
#bucket.delete() |
// ==UserScript== | |
// @name Make JSON Pretty | |
// @version 0.1 | |
// @description Make JSON look nice | |
// @include *.json | |
// @grant none | |
// ==/UserScript== | |
function prettySource(obj) { | |
var maxDepth = 250, |
vault mount pki | |
vault mount -path=pki1 pki | |
vault mount -path=pki2 pki | |
vault mount -path=pki3 pki | |
vault mount-tune -max-lease-ttl=87600h pki | |
vault mount-tune -max-lease-ttl=87600h pki1 | |
vault mount-tune -max-lease-ttl=87600h pki2 | |
vault mount-tune -max-lease-ttl=87600h pki3 | |
vault write pki/root/generate/internal common_name="Vault Testing Root Authority" ttl=87600h |
[ | |
{ "_id" : "01001", "city" : "AGAWAM", "loc" : [ -72.622739, 42.070206 ], "pop" : 15338, "state" : "MA" }, | |
{ "_id" : "01002", "city" : "CUSHMAN", "loc" : [ -72.51564999999999, 42.377017 ], "pop" : 36963, "state" : "MA" }, | |
{ "_id" : "01005", "city" : "BARRE", "loc" : [ -72.10835400000001, 42.409698 ], "pop" : 4546, "state" : "MA" }, | |
{ "_id" : "01007", "city" : "BELCHERTOWN", "loc" : [ -72.41095300000001, 42.275103 ], "pop" : 10579, "state" : "MA" }, | |
{ "_id" : "01008", "city" : "BLANDFORD", "loc" : [ -72.936114, 42.182949 ], "pop" : 1240, "state" : "MA" }, | |
{ "_id" : "01010", "city" : "BRIMFIELD", "loc" : [ -72.188455, 42.116543 ], "pop" : 3706, "state" : "MA" }, | |
{ "_id" : "01011", "city" : "CHESTER", "loc" : [ -72.988761, 42.279421 ], "pop" : 1688, "state" : "MA" }, | |
{ "_id" : "01012", "city" : "CHESTERFIELD", "loc" : [ -72.833309, 42.38167 ], "pop" : 177, "state" : "MA" }, | |
{ "_id" : "01013", "city" : "CHICOPEE", "loc" : [ -72.607962, 42.162046 ], "pop" : 23396, "state" : "MA" }, |
#!/bin/bash | |
#This script creates a ca and signs a client key and configures | |
# the database. | |
#Configure the Root CA | |
mkdir ca | |
cd ca | |
mkdir certs crl newcerts private | |
echo "01" > serial |