简体   繁体   中英

How can I create https ssl certificate and integrate with Angular4?

I have create a server side with Spring boot and Spring security with https.

Followed the following url https://www.thomasvitale.com/https-spring-boot-ssl-certificate/

So now I want to access https urls from my client Angular4 application.

But its not woking. What are the steps i need to follow to make it work?

Do I need to create a self-signed certificate for this? If yes how can I create the certificate with mykeystore.jsk and mykeystore.p12

You need to export the cert and key using this: https://medium.com/@rubenvermeulen/running-angular-cli-over-https-with-a-trusted-certificate-4a0d5f92747a

and then in package.json set npm start to what your key/cert files are like this:

ng serve --ssl 1 --ssl-key "ssl/local.brianflove.com.key" --ssl-cert "ssl/local.brianflove.com.crt"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM