archive-monorepo/@tornado/xhr2-cookies/test/helpers/certificates/generate.sh

6 lines
223 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
rm localhost.key.pem localhost.cert.pem
openssl req -nodes -newkey rsa:2048 -keyout localhost.key2.pem -x509 -days 1024 -out localhost.cert.pem
openssl rsa -in localhost.key2.pem -out localhost.key.pem