Skip to content

Instantly share code, notes, and snippets.

View jrabbit's full-sized avatar
🍡

J Laxson jrabbit

🍡
View GitHub Profile
pip install pyborg==1.2.0a1
Downloading/unpacking pyborg==1.2.0a1
Downloading pyborg-1.2.0a1-py2-none-any.whl (43kB): 43kB downloaded
Downloading/unpacking irc<1.0 (from pyborg==1.2.0a1)
Downloading irc-0.9.zip (71kB): 71kB downloaded
Running setup.py (path:/tmp/pip-build-ScibES/irc/setup.py) egg_info for package irc
Searching for hgtools
Reading https://pypi.python.org/simple/hgtools/
Best match: hgtools 6.5.1
Downloading https://pypi.python.org/packages/source/h/hgtools/hgtools-6.5.1.tar.gz#md5=ce8413687e43d5626cdcfee5024a9bc0
make binaries
pkcs11 import was not found anywhere without a build tag, yay
+ /home/jack/Projects/notary/bin/notary-server
godep: [WARNING]: godep should only be used inside a valid go package directory and
godep: [WARNING]: may not function correctly. You are probably outside of your $GOPATH.
godep: [WARNING]: Current Directory: /home/jack/Projects/notary
godep: [WARNING]: $GOPATH: /home/jack/Projects/Go
cmd/notary-server/config.go:13:2: cannot find package "github.com/docker/notary" in any of:
/usr/lib/go/src/github.com/docker/notary (from $GOROOT)
/home/jack/Projects/notary/Godeps/_workspace/src/github.com/docker/notary (from $GOPATH)
<article>
<div id='yourElement'></div>
<ol id="isbnList">
{%verbatim%}
<template id="t" is="dom-bind">
<template is="dom-repeat" items="{{data}}">
<div><span>{{item}}</span> </div>
</template>
</template>
# -*- coding: utf-8 -*-
from cryptography import x509
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.x509.oid import NameOID
import datetime
import uuid
certtool -i --infile ~/.task/client.cert.pem
X.509 Certificate Information:
Version: 3
Serial Number (hex): 55878f0f19758b1e6e133f5e
Issuer: CN=localhost,O=Göteborg Bit Factory,L=Göteborg,ST=Västra Götaland,C=SE
Validity:
Not Before: Mon Jun 22 04:29:03 UTC 2015
Not After: Tue Jun 21 04:29:03 UTC 2016
Subject: CN=localhost,O=Göteborg Bit Factory
Subject Public Key Algorithm: RSA
# taskd diag
taskd 1.1.0
Platform: Linux
Hostname: 97732b164fc4
Compiler
Version: 4.9.2
Caps: +stdc +stdc_hosted +200809 +LP64 +c8 +i32 +l64 +vp64 +time_t64
Compliance: C++11
openssl s_client -connect localhost:53589 -key ~/.task/gegant-batman.key.pem -cert ~/.task/gegant-batman.cert.pem -CAfile ~/.task/ca.cert.pem
CONNECTED(00000003)
depth=1 CN = localhost, O = G\C3\B6teborg Bit Factory, L = G\C3\B6teborg, ST = V\C3\A4stra G\C3\B6taland, C = SE
verify return:1
depth=0 CN = localhost, O = G\C3\B6teborg Bit Factory
verify return:1
139674597914256:error:140790E5:SSL routines:ssl23_write:ssl handshake failure:s23_lib.c:177:
---
Certificate chain
0 s:/CN=localhost/O=G\xC3\xB6teborg Bit Factory
./src/task rc.debug=1 sync
c: INFO Server certificate will be verified but hostname ignored.
c: INFO Verifying certificate.
c: INFO The certificate is trusted.
Timer Config::load (/home/jack/.taskrc) 0.001406 sec
Parse Tree (before command-specifіc processing)
_original_args
./src/task rc.debug=1 sync
_args
word basename='task' raw='./src/task' BINARY
✗ task rc.debug=1 sync
c: INFO Server certificate will be verified but hostname ignored.
c: INFO The certificate is trusted.
Timer Config::load (/home/jack/.taskrc) 0.001975 sec
Parse Tree (before command-specifіc processing)
_original_args
task rc.debug=1 sync
_args
word basename='task' raw='task' BINARY
pair modifier='debug' name='rc' raw='rc.debug=1' separator='=' value='1' CONFIG ORIGINAL
client.cert.pem
Extensions:
Basic Constraints (critical):
Certificate Authority (CA): FALSE
Key Purpose (not critical):
TLS WWW Client.
Key Usage (critical):
Digital signature.
Key encipherment.
Subject Key Identifier (not critical):