I am using the following packages: LWP Version:6.29, Mechanize Version:1.86, IO Socket Version:2.052, and Net SSLeay Version:1.82. I am supplying my pfx certificate file via ssl_opts, using option "SSL_cert_file => $cert_path". However, in return I get this error from the host:

"500 SSL upgrade failed: Failed to load certificate from file (no PEM, DER or PKCS12) error:23076071:PKCS12 routines:PKCS12_parse:mac verify failure".

My manual login via Chrome is working fine, so the host is able to parse my certificate that way, which means that there is something that I am failing to provide it in my script to cause the problem. Since SSL provides support for pfx file and the host is able to load it via manual login, I should not have to change it to the PEM or other format, right? I do see that the SSL code (IO/Socket/SSL.pm) is recognizing my pfx cert for what it is. Any suggestions?


In reply to SSL error TLSv1.2 by flier

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.