Skip to content

ca cert from client, js fs/os access? #3231

Answered by eddyashton
martijnlammers asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mAlyanak.

You can retrieve the network cert automatically from the service from the /node/network endpoint, but it's risky to do since it could be spoofed.

$ curl https://127.0.0.1:8000/node/network -k
{"current_view":2,"primary_id":"526abf062494bcc9e7b2c647f71670ea842e14061847c713f8cdfc3d5bf05061","service_certificate":"-----BEGIN CERTIFICATE-----\nMIIBtzCCAT2gAwIBAgIQSOnSCaaOWNnADef1HQ1NkzAKBggqhkjOPQQDAzAWMRQw\nEgYDVQQDDAtDQ0YgTmV0d29yazAeFw0yMTAzMTEwMDAwMDBaFw0yMzA2MTEyMzU5\nNTlaMBYxFDASBgNVBAMMC0NDRiBOZXR3b3JrMHYwEAYHKoZIzj0CAQYFK4EEACID\nYgAENU3Q7mFyqDcDpHR9J1aXxNtExrFPubs+OZqGB3IB5kk0ZzmrV80Kwc9eON4j\ndJ0E/NF/PTqMka4kNHG7G4xi5mQH7CU8ldTFS9496leGnQyqoDAjRLC/926/mI76\nHZqlo1AwTjA…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by martijnlammers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants