deleteCert  genCertReq

Chapter 8: Using wstool, wstkeytool, wstant, and wstkeytoolant

export

Description

Reads the certificate associated with the entity stored in the keystore and exports it to a file.

Syntax

Command line:

export 
[-p12 pin] 
[-certFile file_name] 
[-encoding encodingFormat] 
[-format exportFormat] 
[-includeCertChain true | false] 
[-privPbeAlgo algorithm] 
[-certPbeAlgo algorithm] 
entity

Ant build file:

<taskdef name="wst_antTask" classname="com.sybase.wst.wstool.ant.AntTask"/>
<target name="export" > <wst_antTask command="export"
[p12=“pin ]
[certFile=“encodingFormat”] 
[encoding=“encodingFormat”] 
[format=“exportFormat”] 
[includeCertChain=“true | false” ]
[privPbeAlgo=“algorithm” ]
[certPbeAlgo=“algorithm”] 
entity=“entity” >

Where:

Option

Description

p12

This option must be used if the type of certificate is pkcs12. Valid arguments are:

  • PBEWithSHA1And3KeyTripleDESCBC

  • PBEWithSHA1And2KeyTripleDESCBC

  • PBEWithSHA1And128BitRC2CBC

  • PBEWithSHA1And128BitRC4

  • PBEWithSHA1And40BitRC4

certFile

File name with extension of the exported certificate generated in the current directory.

format

The format of the exported certificate. Options are:

  • der (default)

  • netxcape

  • pkcs7

  • pkcs12

encoding

The encoding of the exported certificate. Either binary (default), or base64.

includeCertChain

True or false. If true, includes certificate chain information. The default is true.

privPbeAlgo

The private pbe’s algorithm. Possible values include:

  • PBEWithSHA1And3KeyTripleDESCBC

  • PBEWithSHA1And2KeyTripleDESCBC

  • PBEWithSHA1And128BitRC2CBC

  • PBEWithSHA1And40BitRC2CBC

  • PBEWithSHA1And128BitRC4

  • PBEWithSHA1And40BitRC4

certPbeAlgo

The certificate pbe’s algorithm. The possible values are the same as privPbeAlgo.

Entity

The exported certificate in the form key:certificate

Examples

Example 1

This example exports information from the certificate mytest.crt from the keystore, and exports it to the file exported_cert:

wstkeytool export -format pkcs7 -certFile exported_cert -p12 Pin 
-privPbeAlgo PBEWithSHA11And3keyTripleDESCBC -certPbeAlgo PBEWithSHA11And3keyTripleDESCBC -certfile d:\mykeys\mytest.crt key:”Sybase Jaguar User Test Certificate”




Copyright © 2005. Sybase Inc. All rights reserved. genCertReq