Skip to content

Instantly share code, notes, and snippets.

Sergi Baila sargue

View GitHub Profile
@sargue
sargue / CheckCertificate.java
Created Aug 3, 2018
Simple java cmd line util to check if a keystore contains a given certificate
View CheckCertificate.java
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.security.KeyStore;
import java.security.cert.Certificate;
import java.security.cert.CertificateFactory;
import java.security.cert.PKIXParameters;
import java.security.cert.TrustAnchor;
public class CheckCertificate {
You can’t perform that action at this time.