Skip to content

Commit

Permalink
Try to fix certs
Browse files Browse the repository at this point in the history
  • Loading branch information
koirikivi committed Apr 19, 2024
1 parent 8ce1974 commit f885c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridge_node/scripts/create_node_certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
NODE_NAME=$BRIDGE_HOSTNAME

# Create node server key and certificate signing request (CSR)
openssl req -new -nodes -newkey ec -pkeyopt ec_paramgen_curve:P-256 -out server.csr -keyout server-key.pem -subj "/O=Sovryn/CN=${NODE_NAME}" -addext "subjectAltName = DNS:${NODE_NAME}" -addext "extendedKeyUsage = serverAuth"
openssl req -new -nodes -newkey ec -pkeyopt ec_paramgen_curve:P-256 -out server.csr -keyout server-key.pem -subj "/O=Sovryn/CN=$(hostname)" -addext "subjectAltName = IP:${NODE_NAME}" -addext "extendedKeyUsage = serverAuth"

# Sign the node server CSR with the CA certificate
openssl x509 -req -in server.csr -CA ca-cert.pem -CAkey ca-key.pem -CAcreateserial -out server-cert.pem -days 365

# Create node client key and certificate signing request (CSR)
openssl req -new -nodes -newkey ec -pkeyopt ec_paramgen_curve:P-256 -out client.csr -keyout client-key.pem -subj "/O=Sovryn/CN=${NODE_NAME}" -addext "subjectAltName = DNS:${NODE_NAME}" -addext "extendedKeyUsage = clientAuth"
openssl req -new -nodes -newkey ec -pkeyopt ec_paramgen_curve:P-256 -out client.csr -keyout client-key.pem -subj "/O=Sovryn/CN=$(hostname)" -addext "subjectAltName = IP:${NODE_NAME}" -addext "extendedKeyUsage = clientAuth"

# Sign the node client CSR with the CA certificate
openssl x509 -req -in client.csr -CA ca-cert.pem -CAkey ca-key.pem -CAcreateserial -out client-cert.pem -days 365
Expand Down

0 comments on commit f885c36

Please sign in to comment.