iOS開發證書"此證書的簽發者無效"解決方法

SuperDanny發表於2017-12-13

前言

哎,每次過完節都要有一個坑給自己跳。逃不過這個魔爪。 這不,一過完春節,回來就發現公司證書出現"此證書的簽發者無效"。

證書籤發者無效

問題原因

經過一番查詢,蘋果官方給出了回答。

Thanks for bringing this to the attention of the community and apologies for the issues you’ve been having. This issue stems from having a copy of the expired WWDR Intermediate certificate in both your System and Login keychains. To resolve the issue, you should first download and install the new WWDR intermediate certificate (by double-clicking on the file). Next, in the Keychain Access application, select the System keychain. Make sure to select “Show Expired Certificates” in the View menu and then delete the expired version of the Apple Worldwide Developer Relations Certificate Authority Intermediate certificate (expired on February 14, 2016). Your certificates should now appear as valid in Keychain Access and be available to Xcode for submissions to the App Store.

看來是由於蘋果系統的安全證書過期問題導致。

過期的安全證書

蘋果早在一個多月前就提醒開發者使用新證書。開發者如果不及時更新,不僅會影響到自己的開發工作,還有可能對使用者造成困擾。這一份通知面向的是那些開發應用與 Apple Wallet、Safari 推送中心又或者是 Safari 外掛相關的開發者。蘋果還在通知中表示,開發者需要在 2016 年 2 月 14 日結束之前更新他們的安全證書。更新之後,安全證書的下一個失效期為 2023 年 2 月。

解決辦法

既然知道了原因,那麼就可以對症下藥了。我們通過下載蘋果提供的最新的安全證書並雙擊安裝。

  1. 然後開啟鑰匙串,在導航欄上,依次選擇顯示-顯示已過期的證書
    顯示已過期的證書
  2. 選擇登入-所有專案
  3. 在搜尋欄下輸入 apple w
  4. 刪除對應過期的安全證書

流程


再一次感謝您花費時間閱讀這篇文章!

微博: @Danny_呂昌輝
部落格: SuperDanny

相關文章