ios - IOS 14 - Self signed certificate - not trustable
问题描述
I create a self signed certificate by using this
openssl req \
-newkey rsa:2048 \
-x509 \
-nodes \
-keyout myKey.key \
-new \
-out myCert.crt \
-subj /CN=my.domaine.any \
-config ./myConfig.cnf \
-reqexts SAN \
-extensions SAN \
-sha256 \
-days 365
the content of myConfig is
[ req ]
default_bits = 2048
distinguished_name = req_distinguished_name
req_extensions = SAN
extensions = SAN
[ req_distinguished_name ]
countryName = myCountry
stateOrProvinceName = myProvince
localityName = myCity
organizationName = myOrgan
[SAN]
subjectAltName = DNS:my.domaine.any
extendedKeyUsage = serverAuth
I check the IOS certificate requirement that I find here https://support.apple.com/en-us/HT210176 (I hope, I have everything).
I ame able to install the certificate into Setting > General > Profile.
But I can't trust my certificate because when I'm going to Setting > General > About > Certificate Trust Settings, I didn't see any certificate.
Any clue ?
解决方案
我发现我的配置中缺少什么。
应添加 [SAN] 部分
basicConstraints=CA:TRUE,pathlen:0
它工作!
推荐阅读
- windows - 如何让鼠标光标在 Windows 10 上越过屏幕上边缘?
- sql - 按相似性对行进行分组
- sql - 使用 to_date 给出 ORA-01722 的问题:无效号码
- javascript - 我可以在单独的线程中记录 MS Insights 调用吗?
- postgresql - Heroku Connect,在 postgres 中检测 salesforce 更新
- sql - 如何在 ORACLE SQL 中将 VARCHAR 转换为日期?
- electron - 使用 Electron-builder 自定义 NSIS 安装程序
- pyspark - 为 Spark SQL 中的每一分钟差异创建一个新行
- c# - iOS 和 Android 中的 Xamarin 后退按钮辅助功能名称
- mysql - 在 docker 容器中时无法连接到 MySQL(python MySql-Connector)