Comments (1)
These are the commands I used for the ca.pem, server-key.pem and server-cert.pem (server.pem):
#Create Server Certificates
export HOST=hostname
openssl genrsa -aes256 -out ca-key.pem 4096
openssl req -new -x509 -days 365 -key ca-key.pem -sha256 -out ca.pem
openssl genrsa -out server-key.pem 4096
openssl req -subj "/CN=$HOST" -sha256 -new -key server-key.pem -out server.csr
echo subjectAltName = DNS:$HOST,IP:10.10.10.20,IP:127.0.0.1 >> extfile.cnf
echo extendedKeyUsage = serverAuth >> extfile.cnf
openssl x509 -req -days 365 -sha256 -in server.csr -CA ca.pem -CAkey ca-key.pem -CAcreateserial -out server-cert.pem -extfile extfile.cnf
#Create Client Certificates
openssl genrsa -out key.pem 4096
openssl req -subj '/CN=client' -new -key key.pem -out client.csr
echo extendedKeyUsage = clientAuth > extfile-client.cnf
openssl x509 -req -days 365 -sha256 -in client.csr -CA ca.pem -CAkey ca-key.pem -CAcreateserial -out cert.pem -extfile extfile-client.cnf
rm -v client.csr extfile.cnf extfile-client.cnf
rm -v client.csr server.csr extfile.cnf extfile-client.cnf
from nats-operator.
Related Issues (20)
- HostPort when enableClientsHostPort is set to false HOT 2
- If AdvertiseExternalIP is true on Configfile, startup fails
- ClusterConfig: writeDeadline does not work because only write_deadline is recognized HOT 2
- Cannot seems to build in current state HOT 2
- NATS cluster bound tokens randomly being deleted HOT 4
- NATS Cluster name is not passed to Pods configuration
- Unable to set appProtocol
- cant specify "multi tenancy" accounts
- NatsServiceRole creates invalid tokens in wrong namespaces with Cluster-scoped installation
- NATS Operator and K8S v1.20 compatibility HOT 2
- Upgrade kubernetes dependeny to fix CVE Warnings HOT 4
- Fail to run an Kubernetes 1.22 with unexpected error while running the main control loop HOT 4
- 'the NATS Operator is not recommended to be used for new deployments.' HOT 2
- tolerate-unready-endpoints annotation has been deprecated
- Invalid image in v0.8.3 release
- How to configure accounts HOT 4
- no matches for kind "NatsCluster" in version "nats.io/v1alpha2" HOT 2
- Operator fails to run on Kubernetes v1.24 HOT 1
- Vizier Pem "Failed to connect to NATS, nats_status=6" & NATS pods terminating HOT 1
- Could not construct reference to Endpoints HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nats-operator.