Java tutorial
//package com.java2s; import java.security.cert.X509Certificate; public class Main { protected static boolean isSelfIssued(X509Certificate cert) { return cert.getSubjectDN().equals(cert.getIssuerDN()); } }