-
Install
cfsslandcfssljsoncommands from https://github.com/cloudflare/cfssl -
Create a CA
Make a file called ca.json, containing this:
{
"key": {
"algo": "rsa",
"size": 2048
Install cfssl and cfssljson commands from https://github.com/cloudflare/cfssl
Create a CA
Make a file called ca.json, containing this:
{
"key": {
"algo": "rsa",
"size": 2048
| package bench | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "testing" | |
| "time" | |
| "github.com/juju/juju/cert" | |
| gc "gopkg.in/check.v1" |
This is a proof of concept demonstrating local socket communication with Juju using generally available command line utilities and commands from a remote shell via 'juju ssh' or 'juju run'.
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "time" | |
| "github.com/juju/juju/worker" | |
| "github.com/juju/juju/worker/dependency" | |
| ) |
| package main | |
| import ( | |
| "crypto/rand" | |
| "fmt" | |
| "code.google.com/p/go.crypto/nacl/box" | |
| ) | |
| type PublicKey struct { |
| package main | |
| import ( | |
| "bytes" | |
| "crypto/ecdsa" | |
| "crypto/elliptic" | |
| "crypto/rand" | |
| "crypto/sha256" | |
| "flag" | |
| "fmt" |
| #!/usr/bin/env python | |
| import json | |
| import os | |
| import sys | |
| from subprocess import Popen, PIPE | |
| def die(msg): | |
| print >>sys.stderr, msg |