Discover openssl wildcard certificate request, include the articles, news, trends, analysis and practical advice about openssl wildcard certificate request on alibabacloud.com
command in openssl, and call it a certificate request:
# Openssl req-new-x509-key private/cakey. pem-out cacert. pem-days 3650Create two files in the CA Directory:# Touch index.txt serial
OK, the CA certificate is available, and the next step is to sign the
The first part: overview。。 Part II: System Preparation1 Operating system CentOS 6.xIp:2 Installing OpenSSL Yum Install-y OpenSSL3 Installing the JDKDownload JDK http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html from official websiteDownload here is jdk1.8 upload to CentOS6, extract to/opt/jtools/java/directoryConfiguring Environment variablesVim ~/.bash_profileexport java_home=/opt/jtools/java/jdk1.8export classpath=.
From: http://blog.csdn.net/aking21alinjuju/article/details/7654097
I. Generate a CA certificate
Currently, the CA of a third-party authority is not used for authentication and serves as the CA.
Prerequisites: Download www.openssl.org from the OpenSSL official website to install OpenSSL [Windows and Linux are different]
Start generating certificates and keys
If no
1. Generate CSR
OpenSSL req-new-newkey rsa:2048-nodes-keyout your domain name. key-out your domain name. CSR
The REQ command is primarily used to generate and process PKCS#10 certificate requests.
-new
Generates a new certificate request with a private key, which defaults to 1024 bits.
-newkey rsa:bits
Used to gener
this key to enter the password, security, or there should be a password protection 4096 # using the key generated above, generate a certificate signing request (CSR) # If your key is password protected, OpenSSL will first ask for your password and then ask you a series of questions, # where common Name (CN) Is the most important, it represents your
Create a Test Catalog mkdir/tmp/create_key/cacd/tmp/create_key/ certificate file Generation : One. Server-side 1. Generate the server-side private key (key file): OpenSSL genrsa-des3-out Server.key 1024 The runtime prompts for a password, which is used to encrypt the key file (the parameter des3 is an encryption algorithm or other secure algorithm), and every time a password is required to read the file (v
(encrypted) messages, signed messages, and signed and encrypted messages.
(8) Pkcs#8: Private key information Syntax standard. Pkcs#8 defines the private key information syntax and the cryptographic private key syntax, where the private key encryption uses the PKCS#5 standard.
(9) pkcs#9: Optional attribute type. pkcs#9 defines pkcs#6 extension certificates, pkcs#7 digital signature messages, pkcs#8 private key information, and optional attribute types to be used in PKCS#10
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
Note: Take a look at the last note to avoid deto
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
certificate is. 1. After OpenSSL is installed, find OpenSSL. CnF in the/usr/lib/SSL directory (for Ubuntu system, use whereis to check the SSL directory) and copy it to the working directory. 2. Create a New democafolder under the Work directory, create the new files index.txt and serial in the folder, and then create a newcerts folder. Add the character 01
certificate request, which is only used for Import
P7bDisplay the certificate chain in a tree(CertificateChain)And a single certificate, excluding the private key.
1. caCertificate
Use OpenSSL Create CA Certificate RSA
OpenSSL officially recommends win32 executable file version download: http://www.slproweb.com/products/Win32OpenSSL.htmlca.key CA private key: openssl genrsa-des3-out ca. key 2048 makes the decrypted CA private key, but this step is generally not required: openssl rsa-in ca. key-out ca_decrypted.keyca.crt CA root certificate
OpenSSL official recommendation Win32 executable version download:Http://www.slproweb.com/products/Win32OpenSSL.htmlCa.key CA Private Key:
OpenSSL genrsa-des3-out Ca.key 2048
Make the decrypted CA private key, but this step is generally not required:
OpenSSL rsa-in ca.key-out Ca_decrypted.key
CA.CRT CA Root
to view and modify the generated private key, and to add a cryptographic algorithm to the private key before 2048, such as 3DES RSA, this example is not encrypted.
(2) Generate a self-signed certificate
[root@localhost ~]# OpenSSL req-new-x509-key/etc/pki/ca/private/cakey.pem-days 7300 You are about to IS are To enter information that would be incorporated into your
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/
need to be named Cakey.pem in the/etc/pki/ca/private directory because they are in the/etc/pki/tls/openssl configuration file The path and name of the CA key pair and certificate are default , and if you do not store by default, remember to modify the configuration file650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ")
Certificate file generation
Many may have the same deep experience as myself. Using the OpenSSL library to write an encrypted communication process, the code can be easily written, but the entire work has taken several days. Except for compiling the program successfully (no certificate file can be used, it is compiled successfully and cannot run, it does not mea
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.