iOS generates self-signed certificate for Web download and install app

Source: Internet
Author: User
Tags openssl x509

Copy from http://beyondvincent.com/blog/2014/03/17/five-tips-for-using-self-signed-ssl-certificates-with-ios/

After iOS7, inhouse installation needs SSL, generally used commercially, do not want to use commercial, you get one, through OpenSSL directly generate self-signed certificate, Golang Server can be used directly, but will prompt illegal, plist installation will fail

Therefore, you need to get a CA (certification authority), each device can be installed.

OpenSSL Genrsa-out2048-x509-new -key myca.key-out-subj/cn= " My Custom CA "

More shameless, for a 100 of years, through the browser on the iOS device installed this CA can be

Below we create the required key and Cert files based on this CA

OpenSSL Genrsa-out2048

Create CSR below, note that the domain name must be

OpenSSL req-new - out Mycert.req-key mycert.key-subj/cn=www2.mysite.com

Finally create cert with CSR

OpenSSL x509-req- in Mycert.req-out36500 -cacreateserial-caserial serial

Well, it's the same shameless 100 years.

Well, Mycert.key and mycert.cer can use the Golang server.

iOS generates self-signed certificate for Web download and install app

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.