📄 showcrlinfo.java
字号:
import java.io.*;
import java.util.*;
import java.security.cert.*;
public class ShowCRLInfo{
public static void main(String [] args) throws Exception {
CertificateFactory cf = CertificateFactory.getInstance("X.509");
FileInputStream in = new FileInputStream(args[0]);
X509CRL crl =
(X509CRL)cf.generateCRL(in);
System.out.println("---CRL---");
System.out.println("type = " +crl.getType( ));
System.out.println("version = " + crl.getVersion( ));
System.out.println("issuer = "+crl.getIssuerDN().getName( ));
System.out.println("signing algorithm = "+crl.getSigAlgName( ));
System.out.println("this update = " + crl.getThisUpdate( ));
System.out.println("next update = " + crl.getNextUpdate( ));
in.close();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -