Skip to content

Instantly share code, notes, and snippets.

Sergi Baila sargue

Block or report user

Report or block sargue

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.