Resolves an issue where STARTSSL certificates are not trusted on Android or mobile Chrome

Source: Internet
Author: User

A period of time in startssl.com applied for a year of free certificate, configuration to Nginx everything is normal, the computer chrome IE is normal, but on the phone prompt is not trusted, see the list of trusted credentials of Android, StartCom is also on the list. Just wondering,, the IPhone ipad Safari also prompts the certificate to be OK.


I also suspect that the problem is my mobile phone system (because the brush is a third-party streamlining system), the afternoon cruel bar system also brush Sony original ROM, special can't wait to open chrome Input Web page or prompt certificate is not trusted .... Day,,,


On the Internet a search, found that the situation is quite common, and later saw such a passage.

Some browsers do not accept certificates signed by well-known certification authorities, while others accept them. This is because certificate issuance uses a number of intermediary certification bodies, which are authorized by well-known certification authorities to issue certificates on their behalf, but they are not widely recognized, so some clients do not recognize them. In this case, the certificate Authority provides a package of certificate chains to declare a well-known certification authority and its own relationship, which requires merging this certificate chain package with the server certificate into one file.

Maybe StartCom's Class 1 is a middle-issuing agency, and Android doesn't recognize them. Then according to the method provided in the article, only need to merge the StartCom CA certificate chain into my certificate, it can be done.

On http://www.startssl.com/certs/, I found the startcom certificate chain package with the file name ca-bundle.crt. After downloading, I use the Linux cat instructions to merge them with my certificate.

Cat Ssl.crt ca-bundle.crt > SSL.NEW.CRT

It is very important that when you execute the cat command, your own certificate must be placed in front of the CA-BUNDLE.CRT, or a key validation error will occur after uploading to the server.


Do not worry about the new certificate, because it is the cat's two certificate files, so the two certificate files are not line break at the stitching,

Vim SSL.NEW.CRT

Edit the certificate file.

dgfydhnzbc5jb20vma0gcsqgsib3dqebcwuaa4ibaqckpjppwa+utyulvhbsfhf4^ms2szopksmvnv005fhfwh3kbu03gup/ 3fnf6hz8i0qjebmxumeb+ff3svv936kcon^mswtpqzbufgrw0gq9qbhxb06tlekgexwaiskbehtadxv1sywyoibu2qf3jc1hggyo^ mzj2wxpcqzcptzk3lmpgqytjlwjpnba8khq4ptlnktq/tilvy/ln7kcbjrt6rm6cs^ moqojabhw4nsyqslk5rtggtdiecytryflqfzp6ac2zd82j9m3vpdd5e9edyeq3hae^ M35ahgzwh0a6fgdshr04dejxy0jzcxemh1lyg4jmln8p7qtrzmljjcytbsitzucz9^m-----END CERTIFICATE----------BEGIN CERTIFICATE-----Miifyzcca0ukawibagibozanbgkqhkig9w0baqsfadbtmqswcqydvqqgewjjtdewmbqga1uechmnu3rhcnrdb20gthrkljesmcoga1uea Xmju3rhcnrdb20gq2vydglmawnhdglvbibbdxrob3jpdrkgrziwhhcnmtawmtaxmdewmda5whcnmzkxmjmxmjm1otaxwjbtmqswcqydvqqgewjjtdewmbqga1 Uechmnu3rhcnrdb20gthrkljesmcoga1ueaxmju3rhcnrdb20gq2vydglmawnhdglvbibbdxrob3jpdhkgrziwggiima0gcsqgzib3dqebaquaa4icdwawggi Kaoicaqc2itzbb7cgnr2cu+ewiaoveq8oo1xj

See,

-----END CERTIFICATE----------BEGIN CERTIFICATE-----

Here you need to manually insert a line break from the middle.


dgfydhnzbc5jb20vma0gcsqgsib3dqebcwuaa4ibaqckpjppwa+utyulvhbsfhf4^ms2szopksmvnv005fhfwh3kbu03gup/ 3fnf6hz8i0qjebmxumeb+ff3svv936kcon^mswtpqzbufgrw0gq9qbhxb06tlekgexwaiskbehtadxv1sywyoibu2qf3jc1hggyo^ mzj2wxpcqzcptzk3lmpgqytjlwjpnba8khq4ptlnktq/tilvy/ln7kcbjrt6rm6cs^ moqojabhw4nsyqslk5rtggtdiecytryflqfzp6ac2zd82j9m3vpdd5e9edyeq3hae^ M35ahgzwh0a6fgdshr04dejxy0jzcxemh1lyg4jmln8p7qtrzmljjcytbsitzucz9^m-----END CERTIFICATE----------BEGIN CERTIFICATE-----Miifyzcca0ukawibagibozanbgkqhkig9w0baqsfadbtmqswcqydvqqgewjjtdewmbqga1uechmnu3rhcnrdb20gthrkljesmcoga1uea Xmju3rhcnrdb20gq2vydglmawnhdglvbibbdxrob3jpdrkgrziwhhcnmtawmtaxmdewmda5whcnmzkxmjmxmjm1otaxwjbtmqswcqydvqqgewjjtdewmbqga1 Uechmnu3rhcnrdb20gthrkljesmcoga1ueaxmju3rhcnrdb20gq2vydglmawnhdglvbibbdxrob3jpdhkgrziwggiima0gcsqgzib3dqebaquaa4icdwawggi Kaoicaqc2itzbb7cgnr2cu+ewiaoveq8oo1xj

This way, the merged certificate only needs to change this one place to be online.

After the launch

Service Nginx Restart

It is OK to restart the service and then test on the phone.


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/98/wKioL1Sf7DHBx5crAAGOgOnlpQ4990.jpg "title=" 2.jpg " alt= "Wkiol1sf6txggcqhaafthexcnc0341.jpg"/>

This article from "Professor elder brother" blog, declined reprint!

Resolves an issue where STARTSSL certificates are not trusted on Android or mobile Chrome

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.