Keytool For — Windows

Last updated: 2025. Java version tested: JDK 21. Compatible with Windows 10, Windows 11, Windows Server 2019/2022.

keytool -genkeypair -alias mykey -keyalg RSA -keysize 2048 -keystore myStore.jks Use code with caution. Copied to clipboard List Keystore Contents keytool for windows

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" keystoreFile="C:/path/to/mykeystore.p12" keystorePass="changeit" clientAuth="false" sslProtocol="TLS" /> Last updated: 2025