I also faced the same issue today. The following steps fixed my issue.
- Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
- Double-click to install to Keychain.
- Then in Keychain, Select View -> "Show Expired Certificates" in Keychain app.
- It will list all the expired certifcates.
- Delete "Apple Worldwide Developer Relations Certificate Authority certificates" from "login" tab
- And also delete it from "System" tab.
Now you are ready go.