Skip to content

Instantly share code, notes, and snippets.

View smoldovansky's full-sized avatar

Svetoslav Moldovansky smoldovansky

View GitHub Profile
@smoldovansky
smoldovansky / gist:9e7e0582f4683c455a7d
Created November 13, 2015 09:01
Spring OAuthClient setup for accessing a server with self signed certificate
package com.synergygfs.cards;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.security.KeyStore;
import java.security.cert.Certificate;
import java.security.cert.CertificateFactory;
import java.util.Arrays;