updated cert pinning methods