Skip to content

Instantly share code, notes, and snippets.

View dainnilsson's full-sized avatar

Dain Nilsson dainnilsson

  • Yubico
  • Stockholm, Sweden
View GitHub Profile
@dainnilsson
dainnilsson / certificate.py
Created April 14, 2021 08:22
ykman - custom certificate
from ykman.device import connect_to_device
from ykman.piv import sign_certificate_builder
from yubikit.core.smartcard import SmartCardConnection
from yubikit.piv import PivSession, MANAGEMENT_KEY_TYPE, SLOT, KEY_TYPE
from cryptography import x509
from cryptography.x509.oid import NameOID
import datetime
"""
#!/usr/bin/env python
"""
Super quick hack to replace xclip for use with pass on Windows.
"""
import sys
import subprocess
if __name__ == '__main__':
@dainnilsson
dainnilsson / openpgp.txt
Created March 11, 2016 16:45
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:20ee325b86a81bcbd3e56798f04367096fba95e8]
@dainnilsson
dainnilsson / keybase.md
Created October 3, 2014 11:15
keybase.io proof

Keybase proof

I hereby claim:

  • I am dainnilsson on github.
  • I am dain (https://keybase.io/dain) on keybase.
  • I have a public key whose fingerprint is 20EE 325B 86A8 1BCB D3E5 6798 F043 6709 6FBA 95E8

To claim this, I am signing this object: