小编Aar*_*man的帖子

24
推荐指数
4
解决办法
9154
查看次数

如何在iOS中验证(并要求)自签名证书

我想使用随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)

security ssl openssl ssl-certificate ios

8
推荐指数
1
解决办法
5614
查看次数

库的版本之间的Swift兼容性

我正在为其他开发人员分发库(http://empiric.al).我注意到在快速版本之间,即使是2.0到2.1之间,我也会得到Module file was created by a (newer/older) version of the compiler.

我需要以面向未来的方式进行分发.

我怎样才能确保将来我的编译框架可以被更新版本的Swift使用,所以我不必在Apple推出新版本后立即重新编译?

sdk xcode frameworks ios swift

8
推荐指数
1
解决办法
2090
查看次数

标签 统计

ios ×3

frameworks ×1

iphone ×1

openssl ×1

sdk ×1

security ×1

sqlite ×1

ssl ×1

ssl-certificate ×1

swift ×1

xcode ×1