First, generate certificate step Second, configure the Tomcat server (1) Modify the $CATALINA _home/conf/server.xml file as follows: (2) Remove comments and modify parameters Note: Keystorefile, Keystorepass, Truststorefile, Truststorepass are the location and password of the certificate file, which are set during the certificate file generation process. (3) Modifying parameters (4) Force HTTPS access: Open $catalina_home/conf/web.xml, or add the
Core 2.0 dll real-time update, https, dependency package change problems and solutions, real-time update https
Today, all development environments have been migrated to Visual Studio Code + command line compilation and release under mac OS, and the running server is CentOS7, which is not associated with windows. As long as the Relese is compiled and runs successfully in the same local running environment a
Usually the commercial server uses the HTTPS protocol to request the SSL certificate, the certificate is charged, the price is expensive has the cheap. The difference is that the issuing certificate is different, your certificate authority is more authoritative, the certificate is less likely to be rejected by the browser.Non-commercial versions can be generated by Keytool.Using the Keytool tool to generate certificates and configuration 1, related to
File_get_contents () when obtaining https, the following error occurs: Unable to find the wrapper "https"-did, contents
File_get_contents () Obtain https. the following error occurs: Unable to find the wrapper "https"-did.
Solution: if you are using a server, you can refer to this method to modify the php configurati
First, the premise condition
This method is only applicable to Nginx Web services, the recommended installation of military LNMP or Oneinstack, the installation of their own nginx can be compiled.
Second, modify the host configuration file
Military brother Lnmp or Oneinstack configuration file in/usr/local/nginx/conf/vhost/youdomain.com.conf, add the following configuration to the file.
Server{Listen 80;Server_Name your domain name. com www. your domain name. com;Rewrite ^ (. *)
. In this case, you should merge the intermediate certificate with your own certificate to create a certificate bundle. You can achieve the below command: [ Self-signed CA certificate:Cd/etc/pki/caTouch Index.txtecho > SerialOpenSSL GENRSA-OUT/ETC/PKI/CA/PRIVATE/CAKEY.PEM 2048chmod PRIVATE/CAKEY.PEMOpenSSL req-new-x509-key/etc/pki/ca/private/cakey.pem-days 7300-
IOS9 request https problems-record, ios9 request https record
When iOS9 started, Apple changed all HTTP to HTTPS, so the network request failed. solution:
1. Change to HTTP:
Add a Key: NSAppTransportSecurity (Dictionary type) to the info. plist file, and then add a Key: NSAllowsArbitraryLoads (Boolean Type) to it. The attribute value is set to YES. For example:
Configure Http redirection to Https in IIS and redirect httpsNote first install the url Redirect module https://www.microsoft.com/zh-CN/download/details.aspx? Id = 7435 and then in the web. add the following code
on IP address, so only one HTTPS virtual host can be used on a single IP hostTwo: Configure HTTPD to support HTTPS(1) Apply for a digital certificate for the server;Testing: Issuing a certificate through a privately built CA(a) creating a private CA(b) Create a certificate signing request on the server(c) CA Visa(2) Configure HTTPD to support the use of SSL, and the use of certificates;# yum-y Install Mod_
negotiates symmetric encryption algorithms with the web. The client generates symmetric encryption keys and uses the web public key to encrypt them and send them to the web server. The web server uses the web private key for decryption.7. Transmit data using symmetric encryption keys and verify data integrityUse httpd + openssl to implement https for websites
Next, let's take a look at the specific steps.Configure the CA Server=======================
certificatesA digital certificate is an electronic document that contains information about the holder, a public key, and a digital signature that proves that the certificate is valid. The PKI (Public Key Infrastructure) specification system is composed of digital certificates and related public key management and authentication technologies. In general, digital certificates are issued and managed by a digital certificate authority (Certificate Autho
can provide a full random number, if a client provides random number is not random, it greatly increases the "dialogue key" is the risk of being cracked, so the random number of three groups to form the final random number, to ensure the randomness of the stochastic number, This ensures that the dialog key security is generated for each build.Digital certificatesA digital certificate is an electronic document that contains information about the holder, a public key, and a digital signature that
client does not trust the CA authorityYou need to copy the/etc/pki/ca/cacert.pem file to the clientAnd the client is renamed CACERT.CRT, and then the certificate is installed and placed in the root authority650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/10/wKiom1R200Hz0h17AAFlzMRoEqs724.jpg "style=" float: none; "title=" Installation certificate. png "alt=" wkiom1r200hz0h17aaflzmroeqs724.jpg "/>At this point, the client will not be abl
. note: The SSL session is based on the IP address: it cannot be implemented on an FQDN-based virtual host.
X509.3 certificate format
Certificate format version number certificate serial number Certificate Signature algorithm certificate issuer validity period Holder's Name Holder's public key ca id holder's ID other extended information basic constraints certificate policy Key Usage restrictions CA signature
PKI (Public Key
x509-text-in server.crt
1.1.7 CA Self-signed certificate actual creation process
cd/etc/pki/ca/private/(Umask 077;openssl genrsa-out./CAKEY.PEM 2048) Cd/etc/pki/ca OpenSSL req-new-x509-key private/cakey.pem-out cacert.pem Note: Because some certificate information is defined in the following configuration file, the default input can be
1.2
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.