
Every once in a while I do something colossally stupid. Three days ago was one of those times. I need to install a self-signed root certificate. I was messing around with the keychain and the X509 Anchors (I'm sure you can already see where this is going). Long story short, I have no clue what the password is for the x509 keychain. So, figuring I could work backwards, I copied /System/Library/Keychains from my other system to this one. I know the password for the other system, so I thought that copying it over to this system would allow me to unlock it and change the password. Why I thought this would work, I have no idea. However, I've now noticed that one of the root certificates shows up as expired when it didn't before and I still can't access the keychain. I can unlock it with the admin password, but I can't add root certificates to it since it needs the actual keychain password. The user password still works and is unaffected.
Having gradually come back to my senses, I'm now asking for help here before I do anything else:
How do I reset/reinstall/fix my x509 anchors keychain so that I know the password and can work with it? Also, how do I reset the certificates so that they are not expired.
Any help would be greatly greatly greatly appreciated!!!
(From now on, my keychain passwords will all be 12345).