3.4. Java Keystores and Truststores

    The alias in the keytool command line should match the principal that thePresto coordinator will use.

    Truststore files contain certificates of trusted TLS/SSL servers, or ofCertificate Authorities trusted to identify servers. For securing accessto the Presto coordinator through HTTPS the clients can configure truststores.For the Presto CLI to trust the Presto coordinator, the coordinator’s certificatemust be imported to the CLI’s truststore.

    You can use keytool to import the certificate to the truststore.In the example, we are going to import to a customtruststore presto_trust.jks, and you will get a prompt asking if the certificatecan be trusted or not.