Node.js 27 alpha adds crypto.generateX509Certificate(). Create self-signed certs, run a dev CA and sign CSRs safely without calling OpenSSL directly.