Reads the certificate associated with the entity stored in the keystore and exports it to a file.
export [-p12 pin] [-certFile file_name] [-encoding encodingFormat] [-format exportFormat] [-includeCertChain true | false] [-privPbeAlgo algorithm] [-certPbeAlgo algorithm] entity
<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 |
---|---|
|
This option must be used if the type of certificate is pkcs12. Valid arguments are:
|
|
File name with extension of the exported certificate generated in the current directory. |
|
The format of the exported certificate. Options are:
|
|
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:
|
certPbeAlgo |
The certificate pbe’s algorithm. The possible values are the same as privPbeAlgo. |
Entity |
The exported certificate in the form key:certificate |
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. |
![]() |