Mojo::UserAgent (Mojo command line ) and insecure modifier

115 Views Asked by At

I have the following Mojo::UserAgent code which works fine :

$ua->insecure(1)->get('https://someurl')

trying to do this with Mojo command line

 mojo get -v https://someurl

I am getting this error

SSL connect attempt failed error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed

My question is it possible to make the Mojo get to run as insecure like the $ua->insecure(1)->get('https://someurl')

1

There are 1 best solutions below

0
On

I found it , its -k or --insecure modifier

for example

mojo get -v -k https://someurl