Viewing Certificates

To ensure the certificate was created correctly, run the viewcert utility.

  1. At a command prompt, change to <UnwiredPlatform_InstallDir>\UnwiredPlatform\Servers\SQLAnywhere11\BIN32.
  2. Run:

    viewcert <myCertFile>.crt

    In this example, viewcert indicates that rsa_root.crt is a certificate authority (CA) certificate:

    <UnwiredPlatform_InstallDir>\UnwiredPlatform\Servers\SQLAnywhere11\BIN32>viewcert rsa_root.crt
    SQL Anywhere X.509 Certificate Viewer Version 11.0.1.2405
    
    X.509 Certificate
    -----------------
    Common Name:             MyCompany
    Country Code:            US
    State/Province:          CA
    Locality:                Dublin
    Organization:            MyCompany,Inc
    Organizational Unit:     PTO
    Issuer:                  MyCompany
    Serial Number:           c24f9fa714db4f8084d9235dffdf9dcc
    Issued:                  May 26, 2010   9:32:00
    Expires:                 May 27, 2030   9:32:00
    Signature Algorithm:     RSA, SHA1
    Key Type:                RSA
    Key Size:                1024 bits
    Basic Constraints:       Is a certificate authority, path length limit: 10
    Key Usage:               Certificate Signing

    In this example, viewcert indicates that myserver.crt is a server certificate:

    <UnwiredPlatform_InstallDir>\UnwiredPlatform\Servers\SQLAnywhere11\BIN32>viewcert myserver.crt
    SQL Anywhere X.509 Certificate Viewer Version 11.0.1.2405
    
    X.509 Certificate
    -----------------
    Common Name:             MyCompany
    Country Code:            US
    State/Province:          CA
    Locality:                Dublin
    Organization:            MyCompany, Inc
    Organizational Unit:     Engineering
    Issuer:                  MyCompany
    Serial Number:           ca8295aa17ca41a9a4bd0a3f613c0886
    Issued:                  May 26, 2010   9:34:00
    Expires:                 May 27, 2030   9:34:00
    Signature Algorithm:     RSA, SHA1
    Key Type:                RSA
    Key Size:                1024 bits
    Basic Constraints:       Is not a certificate authority
    Key Usage:               Key Encipherment, Data Encipherment, Key Agreement
  3. Review the values to ensure that the certificate information is correct.