added generation script
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -10,6 +10,8 @@
|
|||||||
*.conf
|
*.conf
|
||||||
*.dylib
|
*.dylib
|
||||||
*.db
|
*.db
|
||||||
|
|
||||||
|
*.pem
|
||||||
# Test binary, built with `go test -c`
|
# Test binary, built with `go test -c`
|
||||||
*.test
|
*.test
|
||||||
|
|
||||||
|
|||||||
8
server/cert/gencerts.sh
Normal file
8
server/cert/gencerts.sh
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Generating..."
|
||||||
|
|
||||||
|
openssl genpkey -algorithm RSA -out ./hmac_key.pem -pkeyopt rsa_keygen_bits:4096
|
||||||
|
|
||||||
|
openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -keyout api_key.pem -out api_cert.pem \
|
||||||
|
-subj "/C=NL/ST=Noord-Holland/L=Amsterdam/O=ExOrg/OU=IT/CN=localhost"
|
||||||
Binary file not shown.
Reference in New Issue
Block a user