fboucquez / symbol-bootstrap

A tool that allows you to quickly configure and setup Symbol testnets and nodes.
Apache License 2.0
47 stars 27 forks source link

symbol-bootstrap renewCertificates does not update the node's certs under the rest-gateway #385

Open Wayonb opened 2 years ago

Wayonb commented 2 years ago

Describe the bug The symbol-bootstrap renewCertificates does not update the node's certs under the rest-gateway

To Reproduce To reproduce the behavior:

  1. symbol-bootstrap renewCertificates --noPassword --force
    ls -la target/nodes/node/cert/
    total 32
    drwxrwxr-x 2 wayon wayon 4096 Apr 11 17:14 .
    drwxrwxr-x 8 wayon wayon 4096 Mar 15 20:17 ..
    -rw-r--r-- 1 wayon wayon  375 Mar 15 19:13 ca.cert.pem
    -rw-r--r-- 1 wayon wayon  113 Apr 11 17:14 ca.pubkey.pem
    -rw-rw-r-- 1 wayon wayon  176 Apr 11 17:14 metadata.yml
    -rw-r--r-- 1 wayon wayon  363 Apr 11 17:14 node.crt.pem
    -rw-r--r-- 1 wayon wayon  738 Apr 11 17:14 node.full.crt.pem
    -rw------- 1 wayon wayon  119 Apr 11 17:14 node.key.pem
    ls -la target/gateways/rest-gateway/api-node-config/cert/
    total 20
    drwxrwxr-x 2 wayon wayon 4096 Mar 15 19:13 .
    drwxrwxr-x 3 wayon wayon 4096 Mar 15 19:13 ..
    -rw------- 1 wayon wayon  375 Mar 15 19:13 ca.cert.pem
    -rw------- 1 wayon wayon  363 Mar 15 19:13 node.crt.pem
    -rw------- 1 wayon wayon  119 Mar 15 19:13 node.key.pem

Expected behavior I expected the nodes cert to be updated also in the rest-gateway