Creates a server certificate request and corresponding private key. Use certreq in interactive mode, or provide all optional parameters on the command line.
(UNIX) $SYBASE/$SYBASE_OCS/bin.
(Windows) %SYBASE%\%SYBASE_OCS%\bin, as.certreq.exe
certreq [-F input_file] [-R request_filename] [-K PK_filename] [-P password]
Or
certreq -v
req_certtype={Server,Client} req_keytype={RSA,DSA} req_keylength={for RSA: 512-4096; for DSA: 512,768,1024} req_country={string} req_state={string} req_locality={string} req_organization={string} req_orgunit={string} req_commonname={string}
See the Examples section for a sample file called input_file.
certreq Choose certificate request type: S – Server certificate request C – Client certificate request (not supported) Q – Quit Enter your request [Q] : s Choose key type: R – RSA key pair D – DSA/DHE key pair Q – Quit Enter your request [Q] : r Enter key length (512, 768, 1024 for DSA; 512-2048 for RSA) : 512 Country: US State: california Locality: dublin Organization: sybase Organizational Unit: dst Common Name: server
Generating key pair (please wait) . . .
Enter password for private key : password Enter file path to save request: server_req.txt Enter file path to save private key : server_pkey.txt
certreq -F input_file req_certtype=server req_keytype=RSA req_keylength=512 req_country=us req_state=california req_locality=dublin req_organization=sybase req_orgunit=dst req_commonname=server
certreq -F path_and_file -R server_req.txt -K server_pkey.txt -P password
This file creates a server certificate request, server_req.txt, and its private key, server_pkey.txt which is protected by password.
Edit the server certificate file with any standard ASCII text editor.
Adaptive Server includes the openssl open source utility in $SYBASE/$SYBASE_OCS/bin (%SYBASE%\%SYBASE_OCS%\bin in Windows). Use openssl to accomplish all certificate management tasks implemented by certreq, certauth and certpk12. Sybase includes this binary as a convenience, and is not responsible for any issues incurred using the binary. See the OpenSSL Web site for details.
The input file uses the format of tag=value. tag is case-sensitive and should be the same as described above.
Running certreq requires that you place the entry for $SYBASE/$SYBASE_OCS/lib3p before the entry for $SYBASE/$SYBASE_OCS/libp364 in the dynamic library search path
The “=” is required. Valid value should start with a letter or digit, must be a single word, and there should not be any spaces within value.
value is required for req_certtype, req_keytype, req_keylength and req_commonname.
The space or tab around <tag>, = and value is allowed. Blank lines are also allowed.
Each comment line should start with #.
The certificate request file is in PKCS #10 format and used as acceptable input for the certauth tool to convert the request to a CA-signed certificate.