Skip to content

Instantly share code, notes, and snippets.

View hughwang-me's full-sized avatar
🌈
Working from heart

Hugh Wang hughwang-me

🌈
Working from heart
View GitHub Profile
@sharonbn
sharonbn / SslUtil.java
Last active August 21, 2022 05:48
SSL/TLS connection from Eclipse Paho Java client to mosquitto MQTT broker
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