vulnerabilities are university intrusions that are frequently exposed in newspapers and magazines recently ...... In a word, the security status of most websites is worrying!
Here I will discuss the security virtual host configuration issues with my personal past experiences. The following uses the establishment of a site cert.ecjtu.jx.cn as an example to discuss the virtual host configuration issues with you.
1. Create a Windows User
Set a windows User Account
For example, a shopping cart data sheet, someone is designed, cert (Id,uid,item1,item2,item3 ... ), while the correct practice should be divided into two tables, cert (Cert_id,item), cert (uid,cert_id).
So what's the wrong paradigm for the wrong watch? Why?
Reply content:
For example, a shopping cart data sheet, someone is designed,
= UrlEncode ($v); } $buff. = $k. "=" . $v. ""; }}//Remove the end symbol "" without this if, because the length must be greater than 0 if (strlen ($buff) > 0) { $stringA = substr ($buff, 0, strlen ($buff)-1); }//Signature stitching API $stringSignTemp = $stringA. "key=". Config (' Wx_sh.key '); The signature is encrypted and capitalized $sign = Strtoupper (MD5 ($stringSignTemp)); return $sign;} The POST request site requires a certificate function Curl_post_ssl ($url, $var
This is a creation in
Article, where the information may have evolved or changed.
In the previous article, "Go language for two-way TLS certified Rest Service" describes how to implement the client and server side of the two-way TLS authentication, here again how to obtain the content of the client certificate on the server side.
For example, how to obtain the subject attribute in the certificate.
Package Mainimport ("Net/http" "Encoding/json") func MyHandler (w http. Responsewriter, R *http.
default (3306). --protocol=name The protocol to use for connection (tcp, socket, pipe, memory). -t, --show-table-type Show table type column. -S, --socket=name The socket file to use for connection. --ssl Enable SSL for connection (automatically enabled with other flags).Disable with --skip-ssl. --ssl-ca=name CA file in PEM format (check OpenSSL docs, implies --ssl). --ssl-capath
service side 106:Install puppet source RPM-IVH "http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-7.noarch.rpm"Installing the service-side program Yum Install-y puppet-serverStart Service puppetmaster startBoot Chkconfig puppetmaster on2) on client 111:Install puppet source RPM-IVH "http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-7.noarch.rpm"Installing the client program Yum install-y puppetModify the configuration file vi/etc/puppet/puppet.conf//Add under
I. HTTPS description with the daily network, information security is more and more important, the traditional website is the HTTP protocol plaintext transmission, and the HTTPS protocol is built by the SSL+HTTP protocol can be encrypted transmission, authentication network protocol, than the HTTP protocol security.That HTTPS is how to open, with the question itself also understand the principle of HTTPS configuration and on the Ubuntu server turned on HTTPS. Second, the configuration certific
. Generate a signing certificateGenerate certificate private key to Dnscrypt-wrapper--gen-crypt-keypair--crypt-secretkey-file=1.key generate signing certificate, default 365 days, can use-- Cert-file-expire-days Specify a valid time Dnscrypt-wrapper--gen-cert-file--crypt-secretkey-file=1.key--provider-cert-file=1. Cert3. The dnscrypt-wrapper process runs, listeni
Installation certificate file Description: 1. Certificate file 214077101580586.pem, contains two pieces of content, please do not delete any piece of content. 2. If it is a CSR created by the certificate system, it also contains: Certificate private key File 214077101580586.key, certificate public key file Public.pem, certificate chain file CHAIN.PEM. (1) Create the CERT directory under Apache's installation directory and copy all downloaded files to
machine) deploying multiple domain Name services.Nginx supports SNI in a way that automatically opens. When a client user is encountered that does not support this feature, Nginx typically returns the server certificate for the default site. For example, the following case, the client does not support SNI, Nginx return serversuning.pem . It is not guaranteed that the certificate can be correctly matched, which will bring unnecessary trouble and distress. Therefore, mobile-side development shoul
First, make sure that your Apache compiles the SSL module, which is the necessary condition to support SSL certificate (if not, compile, "open Phpstudy" "Other options Menu", "php extension", "Php-openssl" in front of the check box).Create the CERT directory under Apache's installation directory, and copy all downloaded files to the Cert directory.Open the httpd.conf file in the Conf directory under the Apa
OpenSSL docs, implies--ssl). --ssl-cert=name X509 cert in PEM format (implies--ssl). --ssl-cipher=name SSL CIPher to use (implies--ssl). --ssl-key=name X509 key in PEM format (implies--ssl). --ssl-verify-server-cert Verify server ' s "Common Name" in its cert against host Name used when connecting. This option was
/this directory, cert/and private/under each one, and then you can modify the DOVECOT-OPSSL.CNF to set up, you put your information into the good.
[Req]Default_bits = 1024Encrypt_key = yesDistinguished_name = req_dnX509_extensions = Cert_typeprompt = No#以上都不用改, the default is OK
[REQ_DN]# Country (2 letter code)#C =fi Country, two letters, China wrote CN
# State or province name (full name)#ST = Which province do you belong to?
# locality Name (eg
play twice!" ”。 Such a well-known network service provider, also inevitable escape ah! The web site injection loophole is a recent high school intrusion that has been exposed in newspapers and magazines ... In a word, most of the site security situation is worrying!
Here's my personal past experience with you to explore the issue of secure virtual host configuration. The following to establish a site cert.ecjtu.jx.cn as an example, with you to discuss the virtual host configuration issues.
Fi
Attack
Whenever we think of hackers, hackers tend to be such a portrait: A lonely person, sneaking into someone else's server to sabotage or steal other people's secret information. Perhaps he will change our homepage, who will steal the customer's credit card number and password. In addition, hackers will attack customers who visit our site. At the same time, our server has become his accomplice. Microsoft called the attack a "Cross-site script" attack. Most of these attacks occur when the Web
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.