added script to download certiicates

nixos
Moritz Böhme 2021-09-21 17:49:00 +02:00
parent 408b016b04
commit 749d66812b
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#! /usr/bin/env bash
set -euo pipefail
nix-shell -p openssl \
--command "openssl s_client -showcerts -connect $1 </dev/null 2>/dev/null|openssl x509 -outform PEM > $2"