• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Samples | SSL Certificates (Tomcat)
  1. Create a self-signed certificate
  2. Verify the self-signed certificate
  3. Configure Tomcat
  4. Test the SSL Certificate

  1. Create a self-signed certificate
    Run the following command to create self-signed certificate:
    Notes:
    • CN: Common Name (First and last name)
    • OU: Organizational Unit
    • O: Organization
    • L: City or Locality
    • ST: State or Province
    • C: two-letter country code

    • storepass: keystore password (is used to access the keystore)
    • keypass: key password (is used to access a certificate within the keystore)
  2. Verify the self-signed certificate
    Run the following command to verify that the certificate was created properly:
    Output:
  3. Configure Tomcat
    Edit the file: "${TOMCAT_HOME}/conf/server.xml".

    Add the https connector:
  4. Test the SSL Certificate
    URL: https://localhost:8443

    tomcat-ssl-cert
© 2025  mtitek