dex/vendor/github.com/ericchiang/oidc/testdata/gen.sh

16 lines
277 B
Bash
Raw Normal View History

2016-07-26 01:30:28 +05:30
#!/bin/bash
set -e
for i in $(seq 1 4); do
openssl ecparam -out ecdsa_521_${i}.pem -name secp521r1 -genkey -noout
done
for i in $(seq 1 4); do
openssl genrsa -out rsa_2048_${i}.pem 2048
done
for i in $(seq 1 4); do
openssl genrsa -out rsa_4096_${i}.pem 4096
done