9.5. Add a Certificate to a Truststore Using Keytool Red Hat JBoss Data Virtualization 6.2 | Red Hat Customer Portal (2024)

Red Hat Training

A Red Hat training course is available for Red Hat JBoss Data Virtualization

Procedure9.3.Add a Certificate to a Truststore Using Keytool

  1. Run the keytool -import -alias ALIAS -file public.cert -storetype TYPE -keystore server.truststore command:

    keytool -import -alias teiid -file public.cert -storetype JKS -keystore server.truststore
  2. If the specified truststore already exists, enter the existing password for that truststore, otherwise enter a new password:

    Enter keystore password: <password> 
  3. Enter yes when prompted to trust the certificate:

    Owner: CN=<user's name>, OU=<dept name>, O=<company name>, L=<city>, ST=<state>, C=<country>Issuer: CN=<user's name>, OU=<dept name>, O=<company name>, L=<city>, ST=<state>, C=<country>Serial number: 416d8636Valid from: Fri Jul 31 14:47:02 CDT 2009 until: Sat Jul 31 14:47:02 CDT 2010Certificate fingerprints: MD5: 22:4C:A4:9D:2E:C8:CA:E8:81:5D:81:35:A1:84:78:2F SHA1: 05:FE:43:CC:EA:39:DC:1C:1E:40:26:45:B7:12:1C:B9:22:1E:64:63Trust this certificate? [no]: yes

Result

The certificate in public.cert has been added to the new truststore named server.truststore.

9.5. Add a Certificate to a Truststore Using Keytool Red Hat JBoss Data Virtualization 6.2 | Red Hat Customer Portal (2024)

FAQs

9.5. Add a Certificate to a Truststore Using Keytool Red Hat JBoss Data Virtualization 6.2 | Red Hat Customer Portal? ›

While a keystore typically holds onto certificates that identify us, a truststore holds onto certificates that identify others. In Java, we use it to trust the third party we're about to communicate with.

What is the difference between Jboss keystore and truststore? ›

While a keystore typically holds onto certificates that identify us, a truststore holds onto certificates that identify others. In Java, we use it to trust the third party we're about to communicate with.

What is the difference between keystore and truststore? ›

The KeyStore is used by the adapter for client authentication, while the TrustStore is used to authenticate a server in SSL authentication. A KeyStore consists of a database containing a private key and an associated certificate, or an associated certificate chain.

How do I add a certificate to trusted? ›

Expand the Computer Configuration section and open Windows Settings\Security Settings\Public Key. Right-click Trusted Root Certification Authorities and select Import. Follow the prompts in the wizard to import the root certificate (for example, rootCA. cer ) and click OK.

What is the difference between Red Hat JBoss Web Server and JBoss EAP? ›

JBoss web server is a server used to deploy web applications, whereas EAP is an application server which can be used also to deploy Java EE compatible applications. EAP gives many more features like messaging, RMI, EJB etc. apart from features provided by Web server. Which one is better will depend on your use case.

Where is the keystore in JBoss? ›

By default, the pathname is the file " . keystore " in the operating system home directory of the user that is running JBoss Web. The password used to access the server certificate from the specified keystore file.

How to check which truststore is used in Java? ›

To determine what SSL/TLS keystore and truststore a Java™ application is using, you can set the JVM property javax. net. debug=true and re-create the error. sslsocket: SSL Socket created.

How does truststore work? ›

A truststore contains the signer certificates (also known as certificate authority certificates) which the endpoint trusts. A signer certificate contains a public key , which is used to validate personal certificates.

Is cacerts a truststore? ›

The cacerts trust store contains a set of commonly used root certificates that are present by default with Management and Security Server.

What are certificates in keystore? ›

Certificates and Keystores. A Certificate is a digitally signed statement that indicates who owns a particular public key. Certificates can be either self-signed by the sender or signed by a trusted third party (Certification Authority).

How to store certificate in Java? ›

By default, the Application Server stores its certificate information in two files in the domain-dir /config directory: Keystore file, keystore. jks, contains the Application Server's certificate, including its private key. The keystore file is protected with a password, initially changeit.

Top Articles
Latest Posts
Article information

Author: Jamar Nader

Last Updated:

Views: 5959

Rating: 4.4 / 5 (75 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Jamar Nader

Birthday: 1995-02-28

Address: Apt. 536 6162 Reichel Greens, Port Zackaryside, CT 22682-9804

Phone: +9958384818317

Job: IT Representative

Hobby: Scrapbooking, Hiking, Hunting, Kite flying, Blacksmithing, Video gaming, Foraging

Introduction: My name is Jamar Nader, I am a fine, shiny, colorful, bright, nice, perfect, curious person who loves writing and wants to share my knowledge and understanding with you.