15 lines
564 B
Markdown
15 lines
564 B
Markdown
|
## Создать свой SSL сервификат
|
|||
|
|
|||
|
```sh
|
|||
|
openssl req -x509 -out server.crt -keyout server.key \
|
|||
|
-newkey rsa:2048 -nodes -sha256 \
|
|||
|
-subj '/CN=localhost' -extensions EXT -config <( \
|
|||
|
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
|
|||
|
```
|
|||
|
|
|||
|
## Флаги `chrome` для запуска с самописным сертификатом
|
|||
|
|
|||
|
```sh
|
|||
|
chrome --ignore-certificate-errors --unsafely-treat-insecure-origin-as-secure=https://localhost:1443
|
|||
|
```
|