Skip to content

Instantly share code, notes, and snippets.

@yowcow
Created December 1, 2022 08:25
Show Gist options
  • Save yowcow/8b31fda462fe59f2d9638a7b8e124f4a to your computer and use it in GitHub Desktop.
Save yowcow/8b31fda462fe59f2d9638a7b8e124f4a to your computer and use it in GitHub Desktop.
CN := test.x28.co
all: test.key test.crt
%.key:
openssl genrsa \
-out $@ \
2048
%.crt: %.key
openssl req \
-new \
-days 3650 \
-x509 \
-sha256 \
-subj "/CN=$(CN)/C=JP/L=Tokyo" \
-key $< \
-out $@
clean:
rm -f *.key *.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment