Skip to content

Instantly share code, notes, and snippets.

View osvadimos's full-sized avatar
🏠
Working from home

Vadim osvadimos

🏠
Working from home
View GitHub Profile
@thomastaylor312
thomastaylor312 / disableSSL.groovy
Created November 3, 2016 22:14
Disable SSL validation in Groovy
def nullTrustManager = [
checkClientTrusted: { chain, authType -> },
checkServerTrusted: { chain, authType -> },
getAcceptedIssuers: { null }
]
def nullHostnameVerifier = [
verify: { hostname, session -> true }
]