我想使用随iOS中的代码一起提供的自签名证书创建到我的服务器的SSL连接.这样我就不必担心更复杂的中间人攻击,其中有人可以访问高级"可信"的证书颁发机构.使用我认为是Apple的标准方式,我遇到了问题.
通过此处找到的过程生成证书
# Create root CA & private key
openssl req -newkey rsa:4096 -sha512 -days 9999 -x509 -nodes -out root.pem.cer
# Create a certificate signing request
openssl req -newkey rsa:4096 -sha512 -nodes -out ssl.csr -keyout ssl.key
# Create an OpenSSL Configuration file from http://svasey.org/projects/software-usage-notes/ssl_en.html
vim openssl.conf
# Create the indexes
touch certindex
echo 000a > certserial
echo 000a > crlnumber
# Generate SSL certificate
openssl ca -batch -config openssl.conf -notext -in ssl.csr -out ssl.pem.cer
# Create Certificate Revocation …Run Code Online (Sandbox Code Playgroud) 我正在为其他开发人员分发库(http://empiric.al).我注意到在快速版本之间,即使是2.0到2.1之间,我也会得到Module file was created by a (newer/older) version of the compiler.
我需要以面向未来的方式进行分发.
我怎样才能确保将来我的编译框架可以被更新版本的Swift使用,所以我不必在Apple推出新版本后立即重新编译?