forked from auth0/node-jwa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (28 loc) · 1.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
verbose: test/keys
@./node_modules/.bin/tap -Rspec test
test: test/keys
@./node_modules/.bin/tap test
test/keys:
@openssl genrsa 2048 > test/rsa-private.pem
@openssl genrsa 2048 > test/rsa-wrong-private.pem
@openssl genrsa -passout pass:test_pass 2048 > test/rsa-passphrase-private.pem
@openssl rsa -in test/rsa-private.pem -pubout > test/rsa-public.pem
@openssl rsa -in test/rsa-wrong-private.pem -pubout > test/rsa-wrong-public.pem
@openssl rsa -in test/rsa-passphrase-private.pem -pubout -passin pass:test_pass > test/rsa-passphrase-public.pem
@openssl ecparam -out test/ec256-private.pem -name prime256v1 -genkey
@openssl ecparam -out test/ec256-wrong-private.pem -name secp256k1 -genkey
@openssl ecparam -out test/ec384-private.pem -name secp384r1 -genkey
@openssl ecparam -out test/ec384-wrong-private.pem -name secp384r1 -genkey
@openssl ecparam -out test/ec512-private.pem -name secp521r1 -genkey
@openssl ecparam -out test/ec512-wrong-private.pem -name secp521r1 -genkey
@openssl ec -in test/ec256-private.pem -pubout > test/ec256-public.pem
@openssl ec -in test/ec256-wrong-private.pem -pubout > test/ec256-wrong-public.pem
@openssl ec -in test/ec384-private.pem -pubout > test/ec384-public.pem
@openssl ec -in test/ec384-wrong-private.pem -pubout > test/ec384-wrong-public.pem
@openssl ec -in test/ec512-private.pem -pubout > test/ec512-public.pem
@openssl ec -in test/ec512-wrong-private.pem -pubout > test/ec512-wrong-public.pem
@touch test/keys
clean:
@rm test/*.pem
@rm test/keys
.PHONY: test