Using https on local bulb development?

I'm so curious to understand how ssl works, so I decided to use ssl in my local flash development environment. I read this article flask.pocoo.org ... ts , but I can not figure out where I get yourserver.keyand yourserver.crtfiles?

please give me some idea that these files are free! I saw that many companies sell ssl, but I want free for my local development only on my computer.

I'm on windows 7

+4
source share
1 answer

openssl , , - . openssl, , OpenSSL, Windows, OpenSSL.

OpenSSL:

openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key

openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt

(CSR)

openssl req -out CSR.csr -key privateKey.key -new

openssl x509 -x509toreq -in certificate.crt -out CSR.csr -signkey privateKey.key

openssl rsa -in privateKey.pem -out newPrivateKey.pem
+5

Source: https://habr.com/ru/post/1609611/


All Articles