Add ssl cert for localhost
This commit is contained in:
parent
1783b00d2c
commit
4873a76a83
4 changed files with 29 additions and 3 deletions
7
ssl/generate.sh
Normal file
7
ssl/generate.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Generates a new certificate that can be used for localhost by shadow-cljs# the certificate can be configured in localhost.conf
|
||||
|
||||
openssl req -x509 -out localhost.crt -keyout localhost.key -newkey rsa:2048 -nodes -sha256 -subj /CN=localhost -extensions EXT -config localhost.conf
|
||||
openssl pkcs12 -export -in localhost.crt -inkey localhost.key -out localhost.p12
|
||||
keytool -importkeystore -srckeystore localhost.p12 -srcstoretype PKCS12 -destkeystore localhost.jks -deststoretype JKS
|
||||
Loading…
Add table
Add a link
Reference in a new issue