Skip to content

Instantly share code, notes, and snippets.

View olsson's full-sized avatar
🌴
On vacation

Erik Olsson olsson

🌴
On vacation
View GitHub Profile
@4ndrej
4ndrej / SSLPoke.java
Last active July 29, 2024 09:01
Test of java SSL / keystore / cert setup. Check the comment #1 for howto.
import javax.net.ssl.SSLParameters;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*/
public class SSLPoke {