Skip to content

Instantly share code, notes, and snippets.

Avatar
🌈
Working from heart

Hugh Wang hughwang-me

🌈
Working from heart
View GitHub Profile
@sharonbn
sharonbn / SslUtil.java
Last active May 9, 2022
SSL/TLS connection from Eclipse Paho Java client to mosquitto MQTT broker
View SslUtil.java
import java.io.*;
import java.nio.file.*;
import java.security.*;
import java.security.cert.*;
import javax.net.ssl.*;
import org.bouncycastle.jce.provider.*;
import org.bouncycastle.openssl.*;
public class SslUtil