Class PrintCertificateCommand

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct

    @Service(name="print-certificate")
    @PerLookup
    public class PrintCertificateCommand
    extends CLICommand
    Prints information about a certificate given in a file.

    Uses RFC-2253 and the OID.getOIDMap() for the principal distinguished name. The Subject from the output can be directly used for a role mapping when using client certificate authentication, f.e.
    <principal-name>CN=My Client,OU=Payara,O=Payara Foundation,L=Great Malvern,ST=Worcestershire,C=UK</principal-name>

    WARNING: JKS and JCEKS may be removed from some JDKs, then this command may fail.

    Author:
    David Matejcek