K
Installing for dependencies:
Distcache i386 1.4.5-14.1 base 119 K
Transaction Summary
=============================================================================
Install 2 Package (s)
Update 0 Package (s)
Remove 0 Package (s)
Total Download size:204 k
Downloading Packages:
(1/2): mod_ssl-2.2.3-11.e 100% |=========================| MB 00:02
(2/2): distcache-1.4.5-14 100% |=========================| 119 KB 00:03
Running Rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing:distcache ######################### [1/2]
Installing:mod_ssl ######################### [2/2]
[Root@centos5 ~]# cd/etc/httpd/conf into the directory where the HTTP server configuration file resides
[Root@centos5 conf]# rm-rf ssl.*/server.* Delete default or residual server certificate related files
[Root@centos5 ~]# OpenSSL genrsa-out www.yang.com.key 1024 establish a server key
Generating RSA private key, 1024 bit long modulus
...........................................................++++++
.++++++
E is 65537 (0x10001)
[Root@centos5 ~]# OpenSSL Req-new-key www.yang.com.key-out WWW.YANG.COM.CSR establish the server public key
are about to is asked to enter information that would be incorporated
into your certificate request.
What you are about to enter the What is called a distinguished Name or a DN.
There are quite a few fields but you can leave some
For some fields there would be a default value,
If you enter '. ', the field would be left blank.
-----
Country Name (2 letter code) [Gb]:om Enter country name
State or province name (full name) [Berkshire]:fuzhou Enter province name
Locality name (eg, city) [Newbury]:fou Enter town name
Organization name (eg, company) [Ltd]:yang name (optional)
Organizational unit Name (eg, section) []:www not entered, direct return
Common name (eg, your name or your server ' s hostname) []:www.yang.com input generic (arbitrary)
email address []:admin@yang.com Enter e-mail addresses
Please enter the following ' extra ' attributes
To is sent with your certificate request
A Challenge Password []: no input, direct return
A optional company name []: no input, direct return
[Root@centos5 ~]# Ls-l
Total 68
-RW-------1 root root 986 23:54 anaconda-ks.cfg
Drwxr-xr-x 2 root root 4096 Feb 1 02:17 Desktop
-rw-r--r--1 Root 0 Feb 1 03:06 finished
-rw-r--r--1 root root 15078 to 23:54 Install.log
-rw-r--r--1 root root 2876 to 23:53 Install.log.syslog
-rw-r--r--1 Root 0 Feb 1 03:06 Package
-rw-r--r--1 Root 0 Feb 1 03:06 processing
-rw-r--r--1 Root 0 Feb 1 03:06 Running
-rw-r--r--1 root root 684 Feb 1 04:54 WWW.YANG.COM.CSR
-rw-r--r--1 root root 887 Feb 1 04:52 www.yang.com.key
[Root@centos5 ~]# OpenSSL x509-req-days 365-in www.yang.com.csr-signkey www.yang.com.key-out WWW.YANG.COM.CRT to establish a server certificate
Signature OK
subject=/c=om/st=fuzhou/l=fou/o=yang/ou=www/cn=www.yang.com/emailaddress=admin@ yang.com
Getting Private Key
[Root@centos5 ~]# LL
Total 72
-RW-------1 root root 986 23:54 anaconda-ks.cfg
Drwxr-xr-x 2 root root 4096 Feb 1 02:17 Desktop
-rw-r--r--1 Root 0 Feb 1 03:06 finished
-rw-r--r--1 root root 15078 to 23:54 Install.log
-rw-r--r--1 root root 2876 to 23:53 Install.log.syslog
-rw-r--r--1 Root 0 Feb 1 03:06 Package
-rw-r--r--1 Root 0 Feb 1 03:06 processing
-rw-r--r--1 Root 0 Feb 1 03:06 Running
-rw-r--r--1 root root 920 Feb 1 04:57 www.yang.com.crt
-rw-r--r--1 root root 684 Feb 1 04:54 WWW.YANG.COM.CSR
-rw-r--r--1 root root 887 Feb 1 04:52 www.yang.com.key
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.