The process to setup a root CA is a two-step process
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:4096 -aes256 -out ca.key
oasys.cnf) for Root CA:[ req ]
distinguished_name = dn
prompt = no
[ dn ]
C = IN
ST = Telangana
L = Hyderabad
O = Oasys
CN = RootCA
[ v3_ca ]
basicConstraints = critical, CA:true
keyUsage = critical, keyCertSign, cRLSign
subjectKeyIdentifier = hash
openssl req -new -x509 -sha256 -days 3650 -key ca.key -out root-ca.cert -config oasys.cnf -extensions v3_ca
Root CA is now ready to be used to issue SSL certificates