Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- TARGET_DOMAIN=$1
- TARGET_DIR="$1/$2"
- ACME_DIR=$3
- mkdir -p $TARGET_DIR
- openssl genrsa 4096 > $TARGET_DIR/account.key
- openssl genrsa 4096 > $TARGET_DIR/domain.key
- openssl req -new -sha256 -key $TARGET_DIR/domain.key -subj "/CN=$1" > $TARGET_DIR/domain.csr
- acme-tiny --account-key $TARGET_DIR/account.key --csr $TARGET_DIR/domain.csr --acme-dir $ACME_DIR > $TARGET_DIR/signed.crt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement