Trying to handle both OpenSSL 0.13 and 0.14.
Major change in load_pkcs12:
  0.13: Need str
  0.14: Need bytes