After tinkering around for about an hour, I found this that might help someone. When you export your certificate, make sure it is a base-64 certificate, as the DER-encoded cannot be read by these functions. Windows want's to default to DER. IT MUST BE Base-64 cert for these to work.