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