Skip to content

Instantly share code, notes, and snippets.

@kamenim
kamenim / SSLPoke.java
Created June 29, 2016 07:52 — forked from 4ndrej/SSLPoke.java
Test of java SSL / keystore / cert setup. Check the commet #1 for howto.
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 {
public static void main(String[] args) {
@kamenim
kamenim / punch
Last active August 29, 2015 14:01 — forked from blaxter/punch
#!/usr/bin/env python
import keyring
import re
import os
import sys
import requests
import configobj
class bcolors: