in reply to Re^2: How to convert curl authentication method to perl (client certificate)
in thread How to convert curl authentication method to perl

PeerHost => "example/gettoken"

This does not look right. PeerHost should be a hostname, not some URL or whatever you think example/gettoken is.