Skip to content

Instantly share code, notes, and snippets.

Avatar

Liviu Tudor liviutudor

View GitHub Profile
@barata0
barata0 / ignore_ssl.groovy
Created Dec 13, 2016
Ignore SSL certs in groovy
View ignore_ssl.groovy
def nullTrustManager = [
checkClientTrusted: { chain, authType -> },
checkServerTrusted: { chain, authType -> },
getAcceptedIssuers: { null }
]
def nullHostnameVerifier = [
verify: { hostname, session ->
//true
hostname.startsWith('yuml.me')
You can’t perform that action at this time.