- Generate p12 keystore from SSL Certificate
openssl pkcs12 -export -clcerts -in domain.cert.pem -inkey private.key.pem -out springboot.p12
- Send p12 keystore to remote
scp -i AWS_KEY.pem .\springboot.p12 ec2-user@XXXXXXXXXXXXXXXX.amazonaws.com:springboot.p12
- Connect to AWS EC2 Instance
ssh -i "AWS_KEY.pem" ec2-user@XXXXXXXXXXXXXXXX.amazonaws.com
- Clone the repo
git clone https://github.com/any-other-guy/pandatype-backend.git cd pandatype-backend
- Setup all prerequisite software
bash ec2_setup.sh
- Copy SSL Certificate p12 keystore to its respective services at **/resource, also remember to enable SSL in application.properties
cd cp springboot.p12 ./pandatype-backend/leaderboard/src/main/resources/ cp springboot.p12 ./pandatype-backend/typingtest/src/main/resources/ cp springboot.p12 ./pandatype-backend/auth/src/main/resources/ ...
- Start services
cd pandatype-backend bash server.sh
- Clone the repo
git clone https://github.com/any-other-guy/pandatype-backend.git
- Run the local build bash script
cd pandatype-backend bash local.sh