'how to create a SSL key and certificate in windows server without installing Openssll

how can I create a key an cert in a windows server wihtout installing openssl and with below characteristics?

openssl req -x509 -batch -nodes -newkey rsa:2048 -keyout lumberjack.key -out lumberjack.cert -subj /CN=logstash.example.com



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source