Md5 with .p12 certificate

#1

Is there a way to hash string using .p12 certificate?
I have .p12 certificate file with password protected, i want to hash some string with it.