How to handle invalid SSL certificates with Apache HttpClient?

apache httpclient ssl certificate authentication
apache httpclient ignore ssl
apache httpclient 4.5 ssl example
httpclient unable to find valid certification path to requested target
noophostnameverifier
httpclient disable certificate validation java
apache httpclient ignore sslpeerunverifiedexception
apache http client https