set OPENSSL_CONF=.\rootCA_openssl.conf
.\openssl\openssl genrsa -out deviceCert.key 2048 
.\openssl\openssl req -new -key deviceCert.key -out deviceCert.csr -subj "/C=NZ/ST=NZ/L=NZ/O=Candelic/OU=IT Candelic/CN=candelic.com"
.\openssl\openssl x509 -req -in deviceCert.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out deviceCert.crt -days 3650 -sha256
type deviceCert.crt rootCA.pem > deviceCertAndCACert.crt