mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-19 09:54:22 +00:00
Remove OpenSSL import
This commit is contained in:
parent
b1096eea4d
commit
91cab94ff1
1 changed files with 1 additions and 13 deletions
|
|
@ -4,15 +4,3 @@ sudo chown -R ubuntu:ubuntu /home/ubuntu/song-recognition
|
||||||
|
|
||||||
sudo systemctl start mongod.service
|
sudo systemctl start mongod.service
|
||||||
sudo systemctl enable mongod.service
|
sudo systemctl enable mongod.service
|
||||||
|
|
||||||
# Generate SSL Cert
|
|
||||||
cd /home/ubuntu
|
|
||||||
PUB_IP_ADDRESS=$(curl -s ifconfig.me)
|
|
||||||
openssl genpkey -algorithm RSA -out song_rec-server.key -pkeyopt rsa_keygen_bits:2048
|
|
||||||
openssl req -new -key song_rec-server.key -out server.csr -subj "/CN=$PUB_IP_ADDRESS"
|
|
||||||
openssl x509 -req -days 365 -in server.csr -signkey song_rec-server.key -out song_rec-server.crt -extensions v3_req -extfile <(printf "[v3_req]\nsubjectAltName=IP:$PUB_IP_ADDRESS")
|
|
||||||
|
|
||||||
sudo rm server.csr
|
|
||||||
|
|
||||||
export CERT_PATH=/home/ubuntu/song_rec-server.crt
|
|
||||||
export CERT_KEY_PATH=/home/ubuntu/song_rec-server.key
|
|
||||||
Loading…
Add table
Reference in a new issue