heyarne.all-my-friends.app/ssl/generate.sh
2020-05-02 22:23:07 +02:00

7 lines
501 B
Bash

#!/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