File: gen-server.sh

package info (click to toggle)
node-request 2.88.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 960 kB
  • sloc: javascript: 9,687; sh: 46; makefile: 2
file content (13 lines) | stat: -rwxr-xr-x 337 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# fixes:
# Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small
# on Node > v10

openssl genrsa 4096 > server.key

openssl req -new -nodes -sha256 -key server.key -config server.cnf -out server.csr

openssl x509 -req -sha256 -in server.csr -CA ca.crt -CAkey ca.key -out server.crt

# password: password