dotfiles/modules/services/diskstation/getCertificate.sh

6 lines
173 B
Bash
Raw Normal View History

2021-09-21 17:49:00 +02:00
#! /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"