Displays values within a Public Key Infrastructure (PKI) object, converts the encoding of PKI objects, or encrypts and decrypts private keys.
viewcert [ options ] input-file
|-d||DER-encodes the output. This option is only useful with the -o option. It cannot be used with -p. By default, viewcert outputs the PKI object in a readable text format.|
|-ip input-password||Specifies the password needed to decrypt the private key if the input-file contains an encrypted private key.|
|-o output-file||Specifies the file that viewcert should write the output to. By default, viewcert writes the output to the command prompt window where it is running.|
|-op output-password||Specifies the password viewcert should use to encrypt a private key. This option is only useful with -d or -p. By default, private keys are not encrypted.|
|-p||PEM-encodes the output. This option is only useful with the -o option. It cannot be used with -d. By default, viewcert outputs the PKI object in a readable text format.|
|input-file||Specifies a file that must be a DER- or PEM-encoded PKI object.|
The viewcert utility can be used to view the following types of PKI objects:
Viewcert can also be used to convert between DER and PEM encoding types and to encrypt or decrypt private keys.
The viewcert utility supports RSA and ECC objects. To view ECC objects, you must order a separate license. See Separately licensed components.
The following example allows you to view the sample RSA certificate that is included with SQL Anywhere:
This example produces the following output:
SQL Anywhere X.509 Certificate Viewer Version 22.214.171.12430 X.509 Certificate ----------------- Common Name: RSA Root Organizational Unit: test Organization: test Locality: test State/Province: test Country Code: test Issuer: RSA Root Serial Number: 303031 Issued: Apr 15, 2002 12:53:51 Expires: Apr 16, 2022 12:53:51 Signature Algorithm: RSA, MD5 Key Type: RSA Key Size: 1024 bits Basic Constraints: Is a certificate authority, path length limit: 10 Key Usage: Certificate Signing, CRL Signing
|Envoyer votre avis sur cette page par email.||Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|