added generation script

This commit is contained in:
Daan Selen
2025-05-27 13:26:20 +02:00
parent 5c7f296d03
commit d1a86ce982
4 changed files with 10 additions and 0 deletions

2
.gitignore vendored
View File

@@ -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

View File

8
server/cert/gencerts.sh Normal file
View 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.