func
3. Configure certmaster
Vi/etc/certmaster. conf
# Configuration for certmasterd and certmaster-ca
[Main]
Autosign = no
Listen_addr = 192.168.15.188 # Listen to the IP address, or do not write
Listen_port = 51235 # listener port, defined by yourself
Cadir =/etc/pki/certmaster/ca
Cert_dir =/etc/pki/certmaster
Certroot =/var/lib/certmaster/certs
Csrroot =/var/lib/certmaster/csrs
Cert_extension =
) Service This key encrypts the resource requested by the user, responds to the client; The note: SSL session is created based on IP address, so on a single IP host, Only one HTTPS virtual host can be used; Review several terms: pki,ca,crl,x.509 (v1, v2, v3) configuration httpd support https: (1) Request a digital certificate for the server; nbsp testing: Issuing certificates through private CAS NBSP ; (a)
Here is a simple demonstration of Apache encryption based authentication access----HTTPS encryption method access.
1.DNS Resolution resolution:
[Root@localhost html]# nslookup www.downcc.com
server:192.168.2.115
address:192.168.2.115#53
Name:www.downcc.com
address:192.168.2.115
2. Install the Apache SSL support module: # yum install-y mod_ssl (default yum installation httpd is not installed this module, automatic production of/etc/httpd/conf.d/ssl.conf files after installation) and genera
Openssl_verify
What is the usage of openssl_verify?
I want to know what value his three parameters pass separately!
Reply to discussion (solution)
$pub _key_id No suspense is the public key! Two other parameters what do $data and $signature mean?
$signature the public key to encrypt the generated data, $data the original data$fp = fopen ("Pem public Key", "R");$cert = Fread ($fp, 8192);Fclose ($FP);$pub _key_id = Openssl_get_publickey ($
See if SSL is supported
First, execute the following command on MySQL to query whether MySQL supports SSL:
Mysql> show VARIABLES like ' Have_ssl ';
+---------------+-------+
| variable_name | Value |
+---------------+-------+
| Have_ssl | YES |
+---------------+-------+
1 row in Set (0.02 sec)
When Have_ssl is YES, it means that the MySQL service already supports SSL. If it is desable, you will need to enable the SSL feature when you start the MySQL service.
Using OpenSSL to c
public key encryption is that a key pair replaces a large number of symmetric keys, thus reducing the workload of key management. Digital Certificates further enhance this advantage, which solves the issue of public key distribution and management. However, digital certificates cannot be managed by themselves. Due to the inherent widespread distribution of digital certificates, the distribution of digital certificates must be taken into account when designing management schemes for these certif
sameCheck the validity period of a certificateCheck if the certificate has been revokedThe PKI consists of the following and parts:CA: Visa authoritiesRA: Registration AuthorityCRL: Certificate revocation ListCertificate Access LibraryCA is the core of PKI, responsible for issuing, certification, management has issued certificates;The current Universal Certificate format standard is zero , which defines th
enter the following ' extra ' attributesTo is sent with your certificate requestA Challenge Password []: An optional company name []: #scp/ROOT/WEB.CSR S2:/root---CA Certification Body------> Sign the S1 signature request WEB.CSR issue generation WEB.CRTS2 is not a CA certification authority nowNeed to first deploy S2 as CA certification AuthorityDeploying CA certification bodies is cumbersome,We use the wrong way to build CA certification bodies,and issue a signature request# OpenSSL ca-in web
configuration file :/etc/httpd/conf/httpd.conf/etc/httpd/conf.d/*.conf all conf files in the CONF.D directory
Virtual Hostbased on host name :add a field to control file access permissions :Create 2 users (not system users, users who are accessing HTML)[[emailprotected]conf]#htpasswd-c/etc/ Httpd/.htpasswduser1newpassword:re-typenewpassword:addingpassword foruseruser1[[emailprotected]conf]#htpasswd/etc/httpd/.htpasswd user2Newpassword:Re-typenewpassword:Addingpasswordfor User
nginx-sticky-module-1.1.tar.gz # cd nginx-1.4.2 # make clean#./Configure -- prefix =/usr/local/lnmp/nginx -- with-http_ssl_module -- with-http_stub_status_module -- add-module =/root/nginx-sticky-module-1.1 # make make install
# Vim/usr/local/lnmp/nginx/conf/nginx. conf // Add the sticky module upstream ty {sticky; server 192.168.1.25: 8080; server 192.168.1.26: 8080;} to the configuration file ;}
# Nginx // start nginx, you can find that an ip address always accesses a tomcat server within th
/etc/pki/tls/certs
# ./make-dummy-cert monit.pem
# cp monit.pem /var/certs
# chmod 0400 /var/certs/monit.pem
Now, put the following code snippets in the main configuration file of Monit. You can create an empty configuration file or modify it based on the built-in configuration file.
set httpd port 1966and
SSL ENABLE
PEMFILE /var/certs/monit.pem
allow monituser:romania
allow localhost
allow 192
PKCS stands for public-key cryptography standards. It is a series of standards developed by the RSA lab and other security system developers to Promote the Development of public key cryptography. PKCS has published 15 standards. Commonly used:
PKCS #12 Personal Information Exchange:. pfx,. p12PKCS #10 certification request:. p10PKCS #7 Cert Request Response:. p7rPKCS #7 binary message:. p7b
PKCS #7 common suffixes:. p7b. p7c. SPC
PKCS #12 common su
appropriate cipher suite)7.Sslsocket Class (SSL protocol-based socket for setting cryptographic suites, handling handshake end events, and managing SSLsession)8.Sslserversocketfactory class (like the Sslsocketfactory class, just build the socket is the Sslserversocket class)9.Sslserversocket Class (Sslsocket, which is dedicated to the server side, is a subclass of ServerSocket)Two: Digital certificate concept Description:1. digital certificates are the carrier of cryptographic algorithms and pu
here. First of all, read requests get bigger. We can increase the server, share the pressure, generally use master-slave, or use dual-master.SubordinateUsing the master-slave, when the write node fault requires us to provide the migration tool commonly used MHAPrimary serverVim/etc/my.cnfinnodb_file_per_table=1skip_name_resolve=1server_id= #log_bin =log-binStart the service and authorize mysql> Grant REPLICATION slave,replication CLIENT on *. * to ' USERNAME ' @ ' HOST ' identified by ' your_pA
After the Web site HTTPS encryption protocol is always TLS1.0 How to configure into TLS1.2? To turn on TLSV1 on the server.2, typically requiring a openssl-based environment, using OpenSSL1.0+, recommended OpenSSL1.0.1+. Requires a Java-based environment, using JDK1.7+. View the version of OpenSSL: # OpenSSL version-Aopenssl1.0.1e-fips OneFeb -built on:wed APR1 -: -: -Utc -Platform:linux-X86_64options:bn ( -, -) MD2 (int) RC4 (16x,int) des (Idx,cisc, -,int) Idea (int) Blowfish (idx) COMPILER:GC
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.