Openssl.cnf: Read-only file system

I am going through the CKA with practice test session.
When i run below, getting the error (openssl.cnf: Read-only file system).
Can anyone help on this.

cat > openssl.cnf <<EOF
req_extensions = v3_req
distinguished_name = req_distinguished_name
[ v3_req ]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names
DNS.1 = kubernetes
DNS.2 = kubernetes.default
DNS.3 = kubernetes.default.svc
DNS.4 = kubernetes.default.svc.cluster.local
IP.1 =
IP.2 =
IP.3 =
IP.4 =
IP.5 =

Hello shireeshkumard,
Can you check this link in official documentation which contains how to configure it