Creating Keys and Cerificate for windows code example
Example: generate certificate in windows
//Required to install Java
keytool -genkey -keyalg RSA -alias "localhost" -keystore "jenkins.jks" -validity 365 -keysize 2048 -dname "CN=localhost, OU=OU_name, O=OU_name, L=city, ST=State_name, C=two_letter_country_code" -ext SAN=dns:localhost,ip:192.168.56.1 -storepass changeit