Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.File;
import java.io.FileInputStream;
import java.security.cert.CertificateFactory;

public class Main {
    public static void main(String[] argv) throws Exception {

        FileInputStream is = new FileInputStream(new File("your"));

        CertificateFactory cf = CertificateFactory.getInstance("X.509");
        java.security.cert.Certificate cert = cf.generateCertificate(is);
    }
}