Most of the time certificates aren't valid is because you don't have the date/time set, change them and try again.