课程: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Generating keypairs and self-signed certificates - Red Hat Enterprise Linux教程
课程: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND
Generating keypairs and self-signed certificates
- [Instructor] Before we can create a secure website, we need to create a self signed certificate. In the RHCE exam you will be given a key and certificate, but knowing the process of creating your own can help with understanding SSL and HTTPS. For this exercise, you need to be logged into rhhost1 and have a terminal open. You also need to have installed mod_ssl and openssl. Start by changing into the certificate structure by typing in cd /etc/pki/tls/certs, and hit Enter. You should be able to do this as a normal user. Now let's generate the RSA private key. Type in sudo openssl genpkey - algorithm rsa -pkeyopt rsa_keygen_bits:2048 -out secure.localnet.com.key, and hit Enter. Type in your password if prompted. This should create a key called secure.localnet.com.key in the current directory. Type in ls to verify. Now that we have our private key, we need to create a certificate signing request or CSR. Type in clear, and then type in sudo openssl req -new - key secure.localnet.com.key…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。