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
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
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 Key (PEM Format ) :
Use the OpenSSL to verify the certificate chain with the following command:Debian:/home/zhaoya/openssl#openssl verify-cafile Root_cert User_certThe Root_cert can contain a lot of certificates, you can use the Cat command to merge multilevel CA certificates into a file, and then the program will load after startup Root_
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 section
#####################################
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 ")
I. Create an OpenSSL Certificate:
1. Create the directory./democa/./democa/newcerts/and create the file./democa/index.txt./democa/serial.
2. Run echo 01>./democa/serial.
3. Create your own CA certificate
$ OpenSSL req-New-X509-keyout ca. Key-out ca. CRT
4. Generate the private key (key file) and CSR file of the server.
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
Certificate category-Root certificate generates the server certificate, which is the basis of the client certificate. Self-signed.-The server certificate is issued by the root certificate. configured on the server.-The client
and ssleay. Lib under the out32dll directory to the lib directory;
Copy the OpenSSL directory under the inc32 directory to the include directory;
Copy the democa directory under the apps directory and the crypto directory under the root directory to the bin directory;
Since OpenSSL is also required for programming, you also need to configure the programming environment and copy the include directory und
Under the Windows platform, if you want to parse a X509 certificate file, the most straightforward way is to use Microsoft's CryptoAPI. But under the non-Windows platform, you can only use the powerful open source cross-platform library OpenSSL. After a X509 certificate is decoded by OpenSSL, a struct pointer of the X5
1. First to generate the server-side private key (key file): OpenSSL genrsa-des3-out server.key 1024The runtime prompts for a password, which is used to encrypt the key filecommand to remove key file password:OpenSSL rsa-in server.key-out Server.key
2. Generate Certificate Signing Request (CSR)
OpenSSL req-new-key server.key-out server.csr-config openssl.cfg
The
Gitlab Configure the mail delivery service will always not receive mail, check/var/log/mail.log, performance behavior for connection TLS and then disconnect, check Gitlab/log/sidekiq.log said Openssl::ssl::sslerror does Not match the server certificate
The solution is: do not validate the
An infinitely better solution (in terms of security, that's) than the accepted answer would be:
ACTIONMAILER::BASE.S
When we visit HTTPS, for some programs need to provide access to the site's CA certificate, this time clients can access the system website, such as using Tibco Business Workspace 5 HTTP send request activty to visit google API provides the rest service, we need to provide the CA certificate of the Www.googleapis.com website. In general, in two more commonly used way, the first way is to access the site thr
requestP7R is the CA's response to a certificate request and is used only for importP7B Displays the certificate chain (certificate chain) in a tree form, and also supports a single certificate, without a private key.1. CA CertificateTo create the RSA key (PEM format) of the CA ce
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.