Winrm password length and character limit?

Is there any kind of limit on length and characters used for password?
My current AMI has 28 letters pass with numerical and special characters.
But when I use the same for winrm password it doesnot connects.
when i shorten it to 14letter and only few special character it works.