OpenSSL self-built CA signed by default is a single domain name certificate, because there are multiple HTTPS domain names on a single server, sometimes you want a certificate to solve all problems, if the same top-level domain name, then the universal domain name (wildcard) certif
copied before.[Ca_default]default_crl_days= 365Make sure the following 2 lines exist under REQ (default first row is yes, line 2nd is commented)[ req ]distinguished_name = req_distinguished_namereq_extensions = v3_reqExamples of V3_REQ nodes are as follows:[ v3_req ]# 在证书请求中添加扩展# 作为最终证书,不能用此证书作为中间证书 具体表现为在查看证书中"基本约束"为 Subject Type=End EntitybasicConstraints = CA:FALSEkeyUsage = nonRepudiation, digitalSignature, keyEncipherment# 暂且理解用来扩展域名吧,DNS.1建议写服务器域名,否则在做HTTPS网站时就呵呵了(题外话), SANs是超级有用的!subject
1. System Environment Description
Linux OpenSSL
1 Linux localhost 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux2 [[emailprotected] /home/study]#openssl version3 OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
Windows IIS
Windows 7x64, IIS 7, default website
Ii. Create a key chain
Not
platforms. The operating system needs to install OpenSSL, and this part of the operation should be performed as a system administrator, therefore, the following command line uses the "#" identifier to start the header.After OpenSSL is installed, the system will generate the openssl. cnf file under the/etc/ssl/Directory (different operating systems may
OpenSSL Toolkit is one of the implementation methods of SSL v2/V3 and TLS v1 protocols on Linux, and provides common encryption and decryption functions.
OpenSSLIt consists of three parts:
1:Libcrypto: an encrypted library mainly used to implement encryption and decryption.
2:Libssl: implements the SSL server-side function session Library
3:OpenSSL command line tool:/usr/bin/
Experimental environment:
Virtual machine: Vmware®workstation ProHost A:ip to 10.1.255.55/16, create CA and provide CA service to other hostsHost B: For httpd server, IP for 10.1.249.115/161, view the OpenSSL profile/etc/pki/tls/openssl.cnf
[Root@localhost ~]# cat/etc/pki/tls/openssl.cnf (View the contents of the CA portion of the configuration file)
......
[CA]Default_ca = ca_default # The default CA s
Tags: des style blog HTTP Io color ar OS sp
Create a Certificate Authority private key (this is your most important key ):
$ openssl req -new -newkey rsa:1024 -nodes -out ca.csr -keyout ca.key
Create your ca self-signed certificate:
$
If you want to create a self-signed certificate that is not valid for one year, or provide additional information about yourself, you can use Open SSL to create a certificate, instead of the standard tool that comes with the SDK: makekeys.
The following command demonstrates how to
The public key and the private key are usually paired. When the public key is used, the corresponding private key exists. Generally, OpenSSL and the Public Key are easily obtained from the private key, therefore, to create a certificate, you must first create a private key.
1. Use
Reference:Http://www.cnblogs.com/lierle/p/5140187.htmlhttp://alvinhu.com/blog/2013/06/12/ creating-a-certificate-authority-and-signing-the-ssl-certificates-using-openssl-in-iis8/Http://brightli.blogspot.com/2013/05/opensslunable-to-access-democa.htmlIIS versionFinal resultsFull Operation screen Recording:Link: http://pan.baidu.com/s/1cdsRSy Password: 7fgqThe whole process went well and encountered a problem
can be generated on their own. Commercially, you typically provide your server or client certificate with a private key and certificate to request a CSR, or to pay a third-party organization to obtain a server certificate and a client certificate that is signed by the CA certifica
have to use OpenSSL for CA. However, although the OpenSSL user interface is prohibitive, its function is probably the most complete one of the various FOSS products. In addition, it is easy to obtain and can be directly used in Debian.Aptitude install OpenSSL can be installed. If Win32 is used, it can be conveniently obtained from the official cygwin image websi
What is CA:
CA (Certificate authority) is the abbreviation of digital Certificate Certification Center, refers to the issuing, management, abolition of digital certificate institutions.
The role of a CA is to check the legitimacy of the identity of the certificate holder and issue a
Self-built CA Based on OpenSSL and SSL certificate issuance
For details about SSL/TLS, see the SSL/TLS principles.For more information about Certificate Authority (CA) and digital certificate, see OpenSSL and SSL digital certificate
work. I used this token. 2. then place the certificate in the appropriate place. It is generally in the root directory of the Ruby or rails installation place, for example, my: e: \ ruby200 \ cacert. pem 3. Set the environment variable. In command line (CMD), enter SET ssl_cert_file = E: \ ruby200 \ cacert. Pem, which is only a temporary environment variable. If the environment variable is fixed, go to the next. 4. Set fixed environment variables.
In HTTPS learning note two, the concept of digital certificates has been clarified, composed and how the client validates the server-side certificate during the HTTPS connection process. This chapter describes how to use the OpenSSL library to create a key file, and to generate a root CA and issue a child certificate.
From: http://liujy1111.blog.163.com/blog/static/49739712008842372293/
However, when I follow the steps above, the HTTPS service will not start, and the certificate file will always be prompted that it does not exist or the format is invalid. After a long time, I finally got it done. Here I will summarize it.
Environment Information:
Software Version installation path
Tomcat APACHE-Tomcat-7.0.11 D:/tomcat/Apache-Tomcat-7.0.11
OpenSSL self-built certificate SSL + Apache
I have prepared it. Well, the following is my note. For details, enter the author name: wingger.In this article, we will test the certificate on Linux9 + apache2.0.52, tomcat5.5.6, j2se1.5, and openssl0.97.The purpose of this article is to communicate. If any errors occur, please advise.Reprinted, please indica
0. EnvironmentInstallation of Nginx, installation of OpenSSL1. Configuration and scriptingFirst create a demo directory (the location of their own choice, I choose to build in the Nginx directory):mkdir /etc/nginx/ca-/etc/nginx/ca-demoModify the SSL configuration openssl.cnf (also may be openssl.conf, do not know where to find with FIND-NAME/OPENSSL.CNF)Change the Dir property to your previous step self-built directory, do not use relative path , will
Before learning about the multi-domain wildcard SSL Certificate, we will first introduce the multi-domain certificate, also known as San certificate or UCC certificate, multi-domain certificates are described as follows:Multi-domain San/ucc ssl
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.