Skip to content

Commit

Permalink
changed script
Browse files Browse the repository at this point in the history
  • Loading branch information
kota-yata committed Jul 20, 2024
1 parent 398f0f2 commit 15200e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ec2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
mkdir -p ./certs

# Generate publi - private key
openssl req -newkey rsa:2048 -nodes -keyout ./certs/private.key -x509 -out ./certs/certificate.pem -subj '/CN=54.187.49.238' -addext "subjectAltName=IP:54.187.49.238"
openssl req -newkey rsa:2048 -nodes -keyout ./certs/private.pem -x509 -out ./certs/certificate.pem -subj '/CN=54.187.49.238' -addext "subjectAltName=IP:54.187.49.238"

openssl x509 -outform der -in ./certs/certificate.pem -out ./certificate.crt

0 comments on commit 15200e4

Please sign in to comment.