CSRs and SSL Certificates: Manual Control
A CSR and private key may be created manually using a DOS command line window and command line tools. CSRs and SSL certificates may also be viewed manually.
To create a CSR and private key manually:
- Open a DOS command window
- cd c:\program files\instantservers\miniportal\apache\install
- spp2k.bat (this will set the PATH and OPENSSL_CONF environment variables)
- cd c:\program files\instantservers\miniportal\apache\conf\ssl.csr
- openssl req -newkey rsa:1024 -keyout req.key -keyform PEM -out req.pem -outform PEM -nodes
The program will prompt for each field needed to build the CSR (e.g. the Country Name of the CSR owner). Although default values are provided, they are only used for illustration and not to create a useful CSR. Enter the information requested in each field. If you make a mistake, the program may be exited by hitting Control-C several times. See below about file naming conventions.
To view a CSR manually:
- Open a DOS command window
- cd c:\program files\instantservers\miniportal\apache\install
- spp2k.bat (this will set the PATH and OPENSSL_CONF environment variable)
- cd c:\program files\instantservers\miniportal\apache\conf\ssl.csr
- openssl req -in req.pem -text -noout
To view a certificate manually:
- Open a DOS command window
- cd c:\program files\instantservers\miniportal\apache\install
- spp2k.bat (this will set the PATH and OPENSSL_CONF environment variable)
- cd c:\program files\instantservers\miniportal\apache\conf\ssl.crt
- openssl x509 -in mydomain.com.crt -text -noout
CSR Details:
The 'Country Name' must be a 2-letter code (e.g. US or CA).
The 'State or Province Name' is the name of the state or province of the company or organization (e.g. California).
The 'Locality Name' is the name of the city of the company or organization (e.g. Mountain View).
The 'Organization Name' should be the name of the company (e.g. InstantServers, Inc.).
The 'Organizational Unit Name' may be left blank or a value entered (e.g. Marketing Group).
The 'Common Name' should be the name of the domain (generally WITHOUT any 'mail' or 'www' prefix) (e.g. instantservers.com).
The 'Email Address' should be the mail account of the server administrator.
Private Key:
The file 'req.key' is the private key. Move this file to the private key directory and rename it as 'mydomain.com.key' where 'mydomain.com' is the domain name used for the CSR (the 'Common Name' field).
A 'PEM pass phrase' is not used to encrypt the private key and is NOT recommended since using one would require the server to be manually started (and the pass phrase typed in). Rather, the private key directory should have permissions set to restrict access only to system administrators.
The file 'req.pem' is the CSR. This file will be used to obtain an SSL certificate. when requesting an SSL certificate.