issued to a fully qualified domain name (FQDN) such as: Www.domain.com or secure.domain.comWildcard SSL (Wildcard SSL) is issued to a domain name that supports wildcard characters, and an SSL certificate is used to secure multiple sites such as: www.yourdomain.com or secure.yourdomain.com or Anything.yourdomain.comSAN
The SSL certificate for the server recently expired and needs to be replaced.
Then after the replacement, request the other interface, there is an error.
Javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX Path Building failed:
Sun.security.provider.certpath.SunCertPathBuilderException:unable to find valid certification path to requested target At Sun.security.ssl.Ale
= Openssl_pkey_get_private (file_get_content ($private _key_path), $passphrase = "); $pub _b = openssl_pkey_get_details ($pkey) [' Key ']; The two are consistent var_dump ($pub _a = = = $pub _b);
The function stream_socket_client also has a purpose of obtaining a domain name that can be used by the server when the server IP is known.
$resource = Stream_socket_client ("ssl://$ip: $port", $errno, $errstr,, Stream_client_connect, $context); $cert Stream
, $context); $cert Stream_context_get_params ($resource); Parse the certificate of $info = Openssl_x509_parse ($cert [' Options '] [' SSL '] [' peer_certificate ']); Get the list of trusted domains in the certificate $domain = Str_replace (' DNS: ', ' ', $info [' Extensions '] [' subjectaltname ']);
You can see that obtaining a Web site
,, Stream_client_connect, $context); $cert Stream_context_get_params ($resource); Parse the certificate of $info = Openssl_x509_parse ($cert [' Options '] [' SSL '] [' peer_certificate ']); Get the list of trusted domains in the certificate $domain = Str_replace (' DNS: ', ' ', $info [' Extensions '] [' subjectaltname ']);
You can see that obtaining a Web site
- Srcstorepass Yourpkcs12pass-alias Tomcat #重启服务器/mnt/web/tomcat/tomcat8/bin/restartup.sh 2, the scheduled task script has, but also need to add a regular script in Linux task, here with the Linux-brought Cron to handle this part. CRONTAB-E Add the following in an open editor (1th per month, 3 o'clock in the morning update) 0 0 3 * * sh/mnt/web/lets/ssl_auto_auth.sh >/dev/null 2>1
Manually create an HTTPS
issued to a domain name that supports wildcard characters, and an SSL certificate is used to secure multiple sites such as: www.yourdomain.com or secure.yourdomain.com or Anything.yourdomain.comSANS Certificate A SANS certificate, you can add any domain name, sub-domain nam
:', '', $info['extensions']['subjectAltName']);
You can see that the private key is not obtained when you obtain the website certificate.
In some websites that use CDN, if you use HTTPS and want to use your own domain name, do you need to provide your private key to CDN vendors? In fact, the certificate path does not need to be consistent with the user name (a domain name that supports https.
T
security seal; One purchase for many years, you can enjoy a discount;7 days Unconditional refund, unlimited number of free re-issuance within the validity period, globalsign risk guarantee up to $100000;A SANs certificate, you can add any domain name, sub-domain name, IP address and its combination, the limit of up to 100 .WebTrust Certified CA Certificate issue
chain) Delete the "#" comment at the beginning of the line to save the exit and restart Apache. Restart mode:C, enter the Apache installation directory of the bin directory, run the following command./apachectl-k Stop./apachectl-k start5. Test installation Results access the domain name of the https://+ certificate binding, the test effect is as follows note: If the site is not properly accessed via HTTPS after deployment, you can confirm that server
OpenSSL to convert the format, the specific commands are as follows, replace MYCERT.CRT with your own file.
OpenSSL x509-in mycert.crt-out mycert.pem-outform PEM
Third, Upyun configuration
In the Upyun background find "toolbox"--> "Add SSL Certificate", open the Pem file in Notepad, fill in the certificate, Notepad
discount;7 Days unconditional refund, the validity of unlimited number of free re-issued;GlobalSign risk guarantee up to $1,500,000;GlobalSign Enhanced SSL CertificateStandard SSL protects a single Web site from being issued to a fully qualified domain name (FQDN) such as: Www.domain.com or secure.domain.comSANS Certificate A SANS
certificate do not refresh, right-click on the certificate, as follows:The solutions to both of these errors are:1 ) The solution to the error isInstall the certificate to the computer's trusted area, then open the Certificate Manager, which will run at the beginning:certmgr.mscSelect the
[root@iz620cgsubhz/tmp]# git clone https://git.dwhd.org/lookback/docker-gitlab.gitCloning to ' Docker-gitlab ' ...Fatal:unable to access ' https://git.dwhd.org/lookback/docker-gitlab.git/': Peer ' s certificate issuer are not recognized.
[root@iz620cgsubhz/tmp]# cd/etc/ssl/certs/[root@iz620cgsubhz/etc/ssl/certs]# Make Serial=5This makefile allows your to create:
As with normal browser access, the service-side certificate is still verified to be trusted (issued by the Authority or signed by the Authority), and if the server-side certificate is not trusted, the default implementation will be problematic and, in general, Java frequently reports errors when accessing SSL links:
Javax.net.ssl.SSLHandshakeException:sun.securi
The most recent project started with a self-built domain certificate, and the result is that the certificate cannot be added to a trusted certificate authority in IE outside of the domain (perhaps because of the inability to connect to the certification authority for the domains). Helpless, had to use MakeCert to create a self-signed
August 7, Google announced that in order to encourage web site developers to pay more efforts to protect the page information, Google search engine ranking algorithm will enhance the installation of the SSL certificate (also known as "HTTPS certificate") Web page search weights.This means that in the new Google search algorithm, the "HTTPS" (Hypertext Transport S
Enhanced SSL CertificateStandard SSL protects a single Web site from being issued to a fully qualified domain name (FQDN) such as: Www.domain.com or secure.domain.comSANS Certificate A SANS certificate, you can add any domain name, sub-domain name, IP address and local serv
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.