perl - Mojo::UserAgent TLS/SSL certificate authentication -
I'm new to Mojolicious and I received a TLS certificate authorization and a both to get Mojo :: UserAgent script Trying to do the TLS certificate file but the certificate file password is protected I have the following code: #! Modern Uses / Usr / bin / env perl: Pearl; Mojo :: UserAgent; IO :: Socket :: SSL :: set_defaults (SSL_passwd_cb = & gt; sub {return "password";}); My $ UA = Mojo :: UserAgent- & gt; new; My $ base_dir = '/ path / to / certs /'; $ Ua- & gt; Ca ($ base_dir. 'Ca-cert.crt'); $ Ua- & gt; Certificate ($ base_dir. 'Clientcert.crt'); My $ tx = $ ua- & gt; Build_tx (POST = & gt; '/ POST HTTP / 1.1'); $ Tx-> Req-> Url-> Parse ('https://example.com:12345'); $ UA- & gt; Start ($ TX); If ($ my $ res = $ tx-> success) ($ res-> body; print dumper ($ tx);} and (my ($ mistake, $ code) = $ tx-> error; $ code I have verified the certificate with the following: "$ code r...