Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #! /bin/sh
  2.  
  3. TARGET_DOMAIN=$1
  4. TARGET_DIR="$1/$2"
  5. ACME_DIR=$3
  6. mkdir -p $TARGET_DIR
  7.  
  8. openssl genrsa 4096 > $TARGET_DIR/account.key
  9. openssl genrsa 4096 > $TARGET_DIR/domain.key
  10. openssl req -new -sha256 -key $TARGET_DIR/domain.key -subj "/CN=$1" > $TARGET_DIR/domain.csr
  11.  
  12. 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