Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning

generate-ssl-certs.bat must be run from the bin directory. If you run from another directory, it appears to work but will not write all the certificate files (in fact it write the key files only)

Code Block
languagetext
themeFadeToGrey
generate-ssl-certs.bat --generate aspire-cert 123456
Location: C:\Users\test\Desktop


Generating CA
Generating Server Certificate
Generating Client Certificate


Importing the Certificate into the Keystore

You can generate a keystore for the client certificate and a truststore for the CA certificate

Keystore

Code Block
languagetext
themeFadeToGrey
keytool -v -importkeystore -srckeystore client/client.p12 -srcstoretype PKCS12 -destkeystore myKeystore.jks -deststoretype JKS

Truststore

Code Block
languagetext
themeFadeToGrey
keytool -import -file ca/ca.crt -keystore myKeystore.jks

...