This error message can occur if there are non url safe characters in your .p12 password file.
Please also verify the following:
•The password is URL safe
•The bundle ID within the certificate and the application match
•The certificate file does not have a format problem
•The certificate is still valid.