终于发现了一个删除信任里残留证书的方法

之前用Shadowrocket的HTTPS解密需要导入证书功能,但是换iPhone X的时候,恢复备份之后发现证书所依赖的描述文件没有被恢复过来,但是信任证书居然还残留在里面删不掉,虽说忽略掉不打开信任开关也没问题,但是比较还是会逼死强迫症的。翻查网络和询问作者都一直误解,终于今天在Telegram上面Shadowrocket的作者推送了这个链接,问题终于得到了解决!

https://apple.stackexchange.com/questions/300203/how-can-i-delete-a-certificate-that-got-restored-from-a-backup-under-ios-10-11

With iOS, certificates are installed as part of profiles. Deleting a certificate means removing the profile.

When an iPhone with profiles is backed up, and then the backup is restored to a new device, the profiles are no longer visible under Settings > General > Profiles. So, they can’t be deleted via the usual way.

The certificates however get restored to the device. One can see them e.g. under Settings > General > About > Certificate Trust Settings.

Hence my question: How can these certificates be deleted from the device?

I found a certificate in my iOS device’s Certificate Trust Settings. And it was not be found in Profiles. Finally I remove it by add the cert file again, and then I can found and remove it in Profiles.

At first, I can’t found the cert file, because this CA was installed years ago. So I did these things:

Backup iPhone to Mac, View backup file by some software (I used iMazing)
Find TrustStore.sqlite3 in Backup/KeychainDomain/ and export it to HOME DIR.
Use this project https://github.com/ADVTOOLS/ADVTrustStore to export certfile

./iosCertTrustManager.py -t ~/TrustStore.sqlite3 -e ~/foo.crt
Airdrop or Email this crt file to iOS device, and install it.
Find it in Settings > General > Profiles and Remove it.
It disappear in “Certificate Trust Settings”
Done.

GitHub上面的这个ADVTrustStore工程居然还有在更新,有鉴于此,我把我到2021年7月1日还能用(实测可以解开iOS 14.6备份的TrustStore.sqlite3文件)的旧版本打包在这里吧。

玩转iPhone新的充电方式(更新)

本文适用对象:iPhone 8、8 Plus、X的玩家或者潜在玩家,败家协会成员。高级安卓旗舰玩家可以忽略。 春节期间,就现在用的充电头和充电线做了一点更新,详见后面的蓝色字体部分吧。

本文讨论内容:跟朋友们分享iPhone在快速充电和无线充电的新玩法以及配件选择。


继续阅读玩转iPhone新的充电方式(更新)

四十不惑与困惑

早上还在北京,下午飞机上,晚上终于能回到家,这样好歹生日也算能在家里过了。

手机上各路朋友的生日祝福,一一谢过!

十年前叫“三字头”,今天开始就步入“四张嘢”了。古语道“四十不惑”,但思前想后一点都不觉得会达到不惑的境界。反倒是在这个人生阶段更易是困惑不已,哪怕是去年游戏人间了一年,也没想好自己该怎么走和是否该走或者能走一条新路。于是至今也就是继续地见步行步,努力做好手头上的事。

懒惰安逸,于是就连这四十岁是否该来个感慨万千也变得有点敷衍了。

40岁,经历了14610天,岁月流逝,很多事未必能一一铭记,感激渡过,感激遇见。

岁月静好,现世安稳。