Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How do I set up multiple ssl certs for inter node/droplet communications via node tls.
I am building a micro-services project that uses node’s tls for inter-service / droplet communication between the various micro services of the overall application. My issue is that I am unsure as to how the various ssl certs / keys need to be created & distributed so that any micro service within the application can communicate with any other micro service within the application using the node tls module.
Do I have one private key for each micro service & distribute its public key counterpart to each of the other micro services?
Can I create one ‘master’ private key & distribute this & its public key counterpart to other micro services?
From what I have learned so far I will be creating a certificate authority (CA) using openssl on one droplet/service. All other certificates will be created/signed from this CA.
Any help or suggestions would be gratefully appreciated.
Thanks in advance, Jonathan
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×