Create a KeyStore:
keytool -genkey -alias mydomain -keyalg RSA -keystore KeyStore.jks -keysize 2048
Generate a CSR:
keytool -certreq -alias mydomain -keystore KeyStore.jks -file mydomain.csr
Import the root & intermediate certificates into your keystore:
keytool -import -trustcacerts -alias root -file root.crt -keystore KeyStore.jks
keytool -import -trustcacerts -alias intermediate -file intermediate.crt -keystore KeyStore.jks
Store and import your new certificate:
keytool -import -trustcacerts -alias mydomain -file mydomain.crt -keystore KeyStore.jks
No comments:
Post a Comment