이 콘텐츠는 선택한 언어로 제공되지 않습니다.
B.5. Add a Certificate to a Truststore Using Keytool
Procedure B.3. Add a Certificate to a Truststore Using Keytool
- 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
keytool -import -alias teiid -file public.cert -storetype JKS -keystore server.truststore
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - If the specified truststore already exists, enter the existing password for that truststore, otherwise enter a new password:
Enter keystore password: <password>
Enter keystore password: <password>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enter
yes
when prompted to trust the certificate:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Result
The certificate in public.cert
has been added to the new truststore named server.truststore
.