mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-08-08 20:02:42 +03:00
Merge pull request #87 from jibsonline/patch-1
Disable RANDFILE to avoid missing '.rnd' file error
This commit is contained in:
@@ -20,6 +20,9 @@ Create a CA certificate, then generate a Certificate Signing Request and use it
|
||||
# Create private key for CA
|
||||
openssl genrsa -out ca.key 2048
|
||||
|
||||
# Comment line starting with RANDFILE in /etc/ssl/openssl.cnf definition to avoid permission issues
|
||||
sudo sed -i '0,/RANDFILE/{s/RANDFILE/\#&/}' /etc/ssl/openssl.cnf
|
||||
|
||||
# Create CSR using the private key
|
||||
openssl req -new -key ca.key -subj "/CN=KUBERNETES-CA" -out ca.csr
|
||||
|
||||
|
Reference in New Issue
Block a user