Skip to content

Instantly share code, notes, and snippets.

@Aebian
Created April 21, 2018 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aebian/f6ce3907d4ac9f82a5bc6ee329e9cba4 to your computer and use it in GitHub Desktop.
Save Aebian/f6ce3907d4ac9f82a5bc6ee329e9cba4 to your computer and use it in GitHub Desktop.
keytool -genkeypair -alias <ServerName> -keyalg RSA -keysize 2048 -keystore "D:\3rdParty\SSLCert\<FileName>.pfx" -validity 1825 -storetype PKCS12 -dname "CN=<fqdn>, OU=<Department>, O=<Enterprise Corp>, L=<City>, ST=<State>, C=CA" -ext SAN=dns:<ServerName1>,dns:<ServerName2>
keytool -certreq -alias <FQDN> -file <FileName>.csr -storepass <Password> -keystore "D:\3rdParty\SSLCert\<FileName>.pfx" -ext SAN=dns:<ServerDNS1>,dns:<ServerDNS1>
keytool -importcert -alias <FQDN> -file <FileName>.cer -storepass <Password> -keystore D:\3rdParty\SSLCert\<FileName>.pfx
keytool -importcert -alias <alias or FQDN> -trustcacerts -file <FileName>.cer -storepass <Password> -keystore D:\3rdParty\SSLCert\<FIleName>.pfx
keytool -list -keystore D:\3rdParty\SSLCert\<FileName>.pfx -storepass "<Password>" -storetype PKCS12
<Connector port="8090" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
scheme="https" secure="true" clientAuth="false"
disableUploadTimeout="true" enableLookups="false"
sslProtocol = "TLS"
maxHttpHeaderSize="65536" maxThreads="200" acceptCount="100"
keystoreType="PKCS12"
keystoreFile="D:\3rdParty\SSLCert\<FileName>.pfx"
keyAlias="<fqdn>"
keystorePass="<password_here>" URIEncoding="UTF-8"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment