lebronjamesuit / social-media-platforms

Build an backend app social media, secure my API using Spring Security 6 and Auth0. Deployed AWS.
https://lbconfessionapis-2012569758.eu-west-2.elb.amazonaws.com/swagger-ui/index.html
1 stars 0 forks source link

Use https in back-end? #9

Open lebronjamesuit opened 1 year ago

lebronjamesuit commented 1 year ago

How to generate backend SSL Certificate without buy a new DNS for beanstalk

lebronjamesuit commented 1 year ago
openssl genrsa 2048 > privatekey.pem

openssl req -new -key privatekey.pem -out csr.pem

Country Name (2 letter code) [AU]:UK
State or Province Name (full name) [Some-State]:Nottingham
Locality Name (eg, city) []:Nottingham
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Nottingham
Organizational Unit Name (eg, section) []:Nottingham
Common Name (e.g. server FQDN or YOUR name)  : domain name or your name

Email Address []:jamesfloatingmarket1508@gmail.com

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

openssl x509 -req -days 365 -in csr.pem -signkey privatekey.pem -out public.crt
lebronjamesuit commented 1 year ago
image image