Skip to content

Instantly share code, notes, and snippets.

@sim0nx
sim0nx / EJBCA_CE_Nitrokey_HSM_PKI.md
Created February 24, 2024 22:23 — forked from p7cq/EJBCA_CE_Nitrokey_HSM_PKI.md
EJBCA CE & Nitrokey HSM - A lab PKI

EJBCA CE & Nitrokey HSM - A lab PKI

Configuration steps for a lab CA, created using EJBCA CE and Nitrokey HSM.

Installation details

Hardware: Raspberry Pi 4 Model B

Crypto token: Nitrokey HSM 2

@sim0nx
sim0nx / gist:bda6ba049d5433ad149c07e3cbf11b9a
Created November 16, 2023 22:23 — forked from jauderho/gist:6b7d42030e264a135450ecc0ba521bd8
HOWTO: Upgrade Raspberry Pi OS from bullseye to bookworm
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ###
#
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels
#
# Make sure everything is up-to-date
sudo apt-get update && sudo apt-get dist-upgrade
# Point to bookworm repos instead
sudo sed -i -e 's/bullseye/bookworm/g' /etc/apt/sources.list

Keybase proof

I hereby claim:

  • I am sim0nx on github.
  • I am sim0nx (https://keybase.io/sim0nx) on keybase.
  • I have a public key ASCI5YQHZdnrp1cSptR_8bBx3We-nnyfLAylX6VyFAU2xgo

To claim this, I am signing this object:

@sim0nx
sim0nx / lmtpd.py
Created February 3, 2014 15:22 — forked from clarkbw/lmtpd.py
#!/bin/env python
from smtpd import SMTPChannel, SMTPServer
import asyncore
class LMTPChannel(SMTPChannel):
# LMTP "LHLO" command is routed to the SMTP/ESMTP command
def smtp_LHLO(self, arg):
self.smtp_HELO(arg)