Hi Team, can anyone help me out in setting up TLS...
# fleet
r
Hi Team, can anyone help me out in setting up TLS? I am trying out fleet on AWS Instance
Copy code
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
  -keyout /tmp/server.key -out /tmp/server.cert -subj "/CN=SERVER_NAME" \
  -addext "subjectAltName=DNS:SERVER_NAME"
k
Hey @Raghavendra Hiremath, Where are you running in to trouble?
r
Hi @Kathy Satterlee , hope you are doing well! In the CN the server name would be hostname of the machine right? And in the Subject Alternate Name: it will be DNS name with FQDN and hostname ?
Copy code
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
  -keyout /tmp/server.key -out /tmp/server.cert -subj "/CN=hostname" \
  -addext "subjectAltName=FQDN:hostname"
k
The CN would be the FQDN. If you have any additional domains that would be covered by the same certificate, those can be included as
subjectAltName
r
Thank you @Kathy Satterlee , it is working!