Creating a keystore and self-signed X.509 certificate for TLS/SSL using keytool utility provided by Java

Solution Verified - Updated -

Issue

  • How to create a keystore and selfsigned certificate.

Environment

  • Java application that needs SSL/TLS certificates. For example:
    • Red Hat JBoss Enterprise Application Platform 5.x
    • Red Hat JBoss Enterprise Application Platform 6.x
    • Apache Tomcat

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.