import

Description

Reads the certificate from a file and stores it as a keystore entry.

Syntax

Command line:

import 
[-p12 pin] 
filename

Ant build file:

<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

p12

This option must be used if the imported certificate is pkcs12 (the certificate file ends with .p12 or .pfx).

filename

The file that contains the information being imported into the keystore. File type can be base64, binary, der, pkcs7, or Netscape.

Examples

Example 1

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"/>