Files
virtual-kubelet/scripts/createCertAndKey.sh
fareszekri 4a6654e08a updated createCertAndKey.sh added -w0 in base64 (#108)
I had to add no wrapping in base64 when using bash on windows  (-w0 in base64) other wise commands fails and cert isn't properly formatted
2018-03-08 11:14:27 -08:00

6 lines
278 B
Bash

#!/bin/bash
# Generate cert and key for chart
openssl req -newkey rsa:4096 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem -subj "/C=US/ST=CA/L=virtualkubelet/O=virtualkubelet/OU=virtualkubelet/CN=virtualkubelet"
cert=$(base64 cert.pem -w0)
key=$(base64 key.pem -w0)