added script to download certiicates
This commit is contained in:
parent
408b016b04
commit
749d66812b
1 changed files with 5 additions and 0 deletions
5
modules/services/diskstation/getCertificate.sh
Executable file
5
modules/services/diskstation/getCertificate.sh
Executable 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"
|
Loading…
Reference in a new issue