Create SSL certificate in Shell

SSL certificate is one of the digital encryption with full name of Secure Sockets Layer.

Many webmaster use SSL to encrypt their important information such as payment information, etc.

Before you proceed to create the CSR key for SSL, you need the information as below.

  • Domain name of Certificate
  • Country Code
  • State
  • City
  • Company Name
  • Company Division
  • Email Address of the Certificate
  • Password for the certificate

Run the following command from Shell.

$ /scripts/gencrt

The following information will be requested.

[==========Generating a SSL Certif for a HTTPS=================]
Before we begin please tell me where to e-mail the csr and key too-
Enter the domainname to make a cert for?
=*=*=Cert info=*=*=
Enter the Country Code (2 letters ie. US)?
Enter the State?
Enter the City?
Enter the Company Name?
Enter the Company Division?
Enter the Contact Email Address?
Enter a challenge password?

Enter your information and press enter for each of them.

Each key will be show as detail below.

CSR
—–BEGIN CERTIFICATE REQUEST—–
MIIB6jCCAVMCAQAwgYwxCzAJBgNVBAYTAk1ZMQ8wDQYDVQQIEwZQRU5BTkcxEzAR
BgNVBAcTCkdFT1JHRVRPV04xCzAJBgNVBAoTAk5BMQswCQYDVQQLEwJOQTEaMBgG
A1UEAxMRd3d3Lm1pY2tnZW5pZS5jb20xITAfBgkqhkiG9w0BCQEWEm1pY2tiZW5n
QGdtYWlsLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEApzVoTF9XRviG
aRXRBzyZ43psfAaLDynStb1V35wFrvNSvAxpzr1IWDLkGIP1vqv/gg82awQtJvB6
0/7o8khUUQzIMjm6ogDYLzA62rTMPSIJTSoo1z5gzPduyz6JhwQLjE6W4F+mVodq
cnUlUIuylG26M8m0G9i/9a1NCBP7GZkCAwEAAaAdMBsGCSqGSIb3DQEJBzEOEwxt
ZnpUMjhmckdsWmMwDQYJKoZIhvcNAQEFBQADgYEAcNfjY9mSY7WwgWJbBt+xzQVw
uqMLyzvduOEQt+b5hVwixw4nm/TCy2cd17+jiQ05UJ9fv+5xBmY2aeJkiR7l5bcm
ILGzCD9Nb45+lMq6OAMH7yjjhgc1Fhts+nCS6sv/x24nWIYnegbyKtoAkUubqv5v
Yf6UGx/t0fmwB+Bne3A=
—–END CERTIFICATE REQUEST—–

RSA
—–BEGIN RSA PRIVATE KEY—–
MIICXAIBAAKBgQCnNWhMX1dG+IZpFdEHPJnjemx8BosPKdK1vVXfnAWu81K8DGnO
vUhYMuQYg/W+q/+CDzZrBC0m8HrT/ujySFRRDMgyObqiANgvMDratMw9IglNKijX
PmDM927LPomHBAuMTpbgX6ZWh2pydSVQi7KUbbozybQb2L/1rU0IE/sZmQIDAQAB
AoGAH1Fmhp945mcYLciTTSqxnCTK+vPyydVIjRe4ZNiBTAJxJZ2hl8JmMXbeuCTH
O35VrhORWrv+hQOXzes50F9xwysBSwRxQD5zqLytARW/+621uQM4Skjx+AvOHz+J
KZUGLLFLXQ5utv2xFe4yJuIshZT6zaaZFuVM8LmMQJmT490CQQDSPRw85fvRbXvt
hnc3/AdReNPqY2FdDc6lJGkaBmcTznUZ40WzCUusWaXQX92x3d0B6ngkgNGi8cQ+
a0w5eP7PAkEAy5qUuzwejERdNEcx21lzXYnY71NkS05XxmOYr8am7niTfodMzfH0
7aAVdv3xunS5ZFZSESHoM9k0R7c/jxW7FwJAHMjrLddbRBBWcG4BsrOaGOiPMz9K
HGCAk5HJphuMT2TsGZBJgbrbFozrq/0EMI8s7E87BdxxV3r8oIM2W4QadwJAbRHu
Qy89nh6xX2QUTVFp/93snKirvbvGQbzw+pkMrAtj2BBbEKhhcTqkxQ3dBOmqtxmW
9R6Y6c2duB1uqxQVGQJBALv1mVdxvWjmP3WYjckWU66DErzFZoYIjhw3LHh4BA9O
A1eDzskwTg1r64nWPBFcHqo8MHLABO5txfQKoYx4wSk=
—–END RSA PRIVATE KEY—–

SSL
—–BEGIN CERTIFICATE—–
MIIDjTCCAvagAwIBAgIJANInVq8nrK0nMA0GCSqGSIb3DQEBBQUAMIGMMQswCQYD
VQQGEwJNWTEPMA0GA1UECBMGUEVOQU5HMRMwEQYDVQQHEwpHRU9SR0VUT1dOMQsw
CQYDVQQKEwJOQTELMAk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hw==
—–END CERTIFICATE—–

Published by

Mick Genie

Mick Genie is the founder of MickGenie.com and working at ExaBytes Network Sdn Bhd and WPWebHost web host company. He is expertise in Windows and Linux environment especially web hosting related information, tips and trick as well as the IT Information.