Skip to content

Instantly share code, notes, and snippets.

View lochhh's full-sized avatar
🐿️

Chang Huan Lo lochhh

🐿️
View GitHub Profile
@lochhh
lochhh / nginx-config-auth-cert-ssl.md
Created May 24, 2024 08:09 — forked from alexishida/nginx-config-auth-cert-ssl.md
Tutorial to configure Nginx client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Original: https://gist.github.com/mtigas/952344

Convert SSL certificate from CRT format to PEM

openssl x509 -in server.crt -out server.der -outform DER
openssl x509 -in server.der -inform DER -out server.pem -outform PEM
@lochhh
lochhh / pytest.md
Created February 25, 2022 10:45 — forked from kwmiebach/pytest.md
pytest cheat sheet

Usage

(Create a symlink pytest for py.test)

pytest [options] [file_or_dir] [file_or_dir] ...

Help: