Created
December 1, 2022 08:25
-
-
Save yowcow/8b31fda462fe59f2d9638a7b8e124f4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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