Reads the certificate from a file and stores it as a keystore entry.
import [-p12 pin] filename
<taskdef name="wst_antTask" classname="com.sybase.wst.wstool.ant.AntTask"/> <target name="import" > <wst_antTask command="import" p12= “pin” filename=“file” >
Where:
Option |
Description |
---|---|
|
This option must be used if the imported certificate is pkcs12 (the certificate file ends with .p12 or .pfx). |
|
The file that contains the information being imported into the keystore. File type can be base64, binary, der, pkcs7, or Netscape. |
This example imports a certificate from import_cert.crt, and stores it in the keystore:
wstkeytool import imported_cert.crt
Ant build example:
<wst_antTask command="importcert" entity="d:\test\test.crt"/>
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |