You received a signed certificate from a Certificate Authority and you wish to use the keytool
command-line utility to store it in your keystore. Which command of keytool would you us
A.
–genkey pair
B.
–import cert
C.
–gensockey
D.
–importkeystore
E.
– storepasswd
Explanation:
B: keytool – import
Reads the certificate or certificate chain (where the latter is supplied in a PKCS#7 formatted reply)
from the file cert_file, and stores it in the keystore entry identified by alias. If no file is given, the
certificate or PKCS#7 reply is read from stdin. keytool can import X.509 v1, v2, and v3 certificates,
and PKCS#7 formatted certificate chains consisting of certificates of that type.
Reference: Configuring Identity and Trust, Commonly Used keytool Commands
http://docs.oracle.com/cd/E11035_01/wls100/secmanage/identity_trust.html
B