Generate a Private Key and a CSR
This begins the process of generating two files: the Private-Key file for the decryption of your SSL Certificate, and a certificate signing request (CSR) file (used to apply for your SSL Certificate).
# openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
Generating SSL Certificates
If we would like to use an SSL certificate to secure a service but we do not require a CA-signed certificate, a valid (and free) solution is to sign your own certificates. We can Generate a Self-Signed Certificate from an Existing Private Key that we create before. This command creates a self-signed certificate (server.crt) from an existing private key (server.key).
# openssl req -key server.key -new -x509 -days 1095 -out server.crt
The -x509 option tells req to create a self-signed cerificate. The -days 1095 option specifies that the certificate will be valid for 1095 days (3 Years). A temporary CSR is generated to gather information to associate with the certificate.
Artikel Terkait :
- [Linux] SSL Certificates, Private Keys and CSRs with OpenSSL
- [Linux] Transfer Files Or Folder Using SCP
- [Linux] Unicode Support CentOS 5.5, PHP And PCRE
- Setting RAID 1 IBM XSeries 346
- NTP (Network Time Protocol)
- [Linux] Redirect on Transparent Proxy
- SLaX
- [Linux] Upgrade PHP 5 to PHP 7 using Yum on Oracle RHEL 6.3 Santiago
- [Linux] Install php-mbstring On ORHEL 6.3
0 comments:
Post a Comment