#  $Id: security_certinfo,v 1.7 2008-05-29 12:53:45 jm199791 Exp $
#  Copyright 2008 Sun Microsystems, Inc. All rights reserved.
#  Strings for the tarantella security certinfo command

security_certinfo_desc="  certinfo      Displays CSR and certificate information 
                and validates a certificate and key pair"

# Strings for tarantella security certinfo

# short usage
sf_certinfo_usage="Usage: tarantella security certinfo [ --csrfile <csrfile> | 
  [ --certfile <certfile> [--keyfile <keyfile>] ] ] 
  [ --full ]
 - Displays information about a Certificate Signing Request and X.509
   certificate, and validates a certificate and key pair.
 - Use \"tarantella security certinfo --help\" for detailed information."  

# long usage
lf_certinfo_usage="
tarantella security certinfo [ --certfile <certfile> [--keyfile <keyfile>] ] 
  [ --full ]

  Displays information about an X.509 certificate and private key,
  optionally checking whether the private key matches the public key
  in the certificate.

  --certfile <certfile>   Names a file containing an X.509 certificate.
  --keyfile <keyfile>     Names a file containing a private key. If omitted,
                          assumes <certfile> contains the private key.
  --full                  Displays detailed information.

tarantella security certinfo --csrfile <csrfile> [ --full ]

  Displays information about a Certificate Signing Request.

  --csrfile <csrfile>   Names a file containing a Certificate Signing Request.
  --full                Displays detailed information."


# Checking the installed server certifcate and key
l_using_server_cert="Checking the certificate installed on the $PRODUCT_SHORT_NAME server.
"
l_using_server_key="Checking the key installed on the $PRODUCT_SHORT_NAME server.
"
l_server_cert_not_installed="You haven't installed a certificate on this server."
l_server_key_notInstalled="You haven't installed a separate key file on this server.
Looking for key in the installed certificate file.
"

# File <certfile> doesn't contain a valid certificate.
l_invalid_cert_1="File "
l_invalid_cert_2=" doesn't contain a valid certificate,
or is not readable by the user \"ttasys\"."

# Certificate from stdin not valid.
l_invalid_cert_3="Not a valid certificate."

# File <keyfile> doesn't contain a valid private key.
l_invalid_key_1="Can't check the certificate and key without a valid private key."

# File <csrfile> doesn't contain a valid csr
l_invalid_csr_1="File "
l_invalid_csr_2=" doesn't contain a valid Certificate Signing Request,
or is not readable by the user \"ttasys\"."

# --keyfile was specified, but not --certfile
l_keyfile_needs_certfile="If you name a key file, you must also name a certificate file."

l_certfile_does_not_exist="The certificate file doesn't exist."
l_csrfile_does_not_exist="The certificate signing request file doesn't exist."
l_keyfile_does_not_exist="The key file doesn't exist."

h_ssleay_csr_info="Certificate Signing Request: Summary"
l_ssleay_csr_info1="CSR file: "
l_ssleay_csr_info2=""


h_ssleay_cert_check="Certificate: Summary"
l_ssleay_cert_check1="Certificate file: "
l_ssleay_cert_check2=""

l_ssleay_check_failure="WARNING: Unable to check that key and certificate are compatible.
Error reported was:"

# error 0
l_ssleay_key_match="Key and certificate are compatible."

# error 1
l_ssleay_bad_options="(ttautility) Incorrect command-line arguments."

# error 2
l_ssleay_no_cert="(ttautility) A certificate file must be specified."

# error 3
l_ssleay_ctx_failure="(ttautility) Unable to construct an SSL context."

# error 4
l_ssleay_bad_cert="(ttautility) Cannot load the certificate file. The file may be corrupt,
or written in an unknown format."

# error 5
l_ssleay_cert_extract="(ttautility) Unable to extract the certificate from the SSL context."

# error 6
l_ssleay_no_key="(ttautility) A key file must be specified to check the certificate/key pair"

# error 7
l_ssleay_key_mismatch="WARNING: The supplied key and certificate do not match."
l_ssleay_wrong_key="The key may belong to another certificate, or could be corrupt."

# error unknown
l_ssleay_unknown="(ttautility) Unknown error code returned."
