Created: 2014-05-19 15:57
Updated: 2014-05-28 10:10


pkiservice-client/cli.bat usage:

Usage: <main class> [options]
        --challenge     Challenge password (EJBCA entity password) (required
                        when enrolling to EJBCA)
  *     --cn            Subject CN to request
        --email         User email address to send confirmation emails to
                        (required when register)
  *     --mode          Mode (register/fetch/poll), poll only available for
        --password      One-time-password (required when poll/download from
        --phone         User phone number to send PIN to (required when
        --pkcs12-file   PKCS#12 output file
                        Default: cert.p12
  *     --provider      Provider (ejbca/openxpki)

authservice configuration:

  • openxpkiServiceUrl - URL of OpenXPKI endpoint
  • ejbcaRegistrationUrl - URL of EJBCA self-registration form
  • mailContext - mail service JNDI URL
  • datasourceContext - JDBC datasource JNDI (identity store)
  • smsapiLogin - SMSAPI account login
  • smsapiPassword - SMSAPI account password

pkiservice configuration:

  • ejbcaRegistrationUrl - URL of EJBCA self-ragistrtion form
  • ejbcaScepUrl - URL of EJBCA SCEP endpoint
  • openxpkiScepUrl - URL of OpenXPKI SCEP endpoint
  • datasourceContext - JDBC datasource JNDI (identity store)
  • caIdentifier - identifier of CA to work against
  • keySize - RSA key size

pkiservice-client configuration:

  • authorizationServiceUrl - authorization service WSDL URL
  • ejbcaServiceUrl - EJBCA service WSDL URL
  • openxpkiServiceUrl - OpenXPKI service WSDL URL


cli.bat --mode register --provider ejbca --cn test --email --phone 501973096
#Approve self-registered user (Add End Entity)
cli.bat --mode fetch --provider ejbca --cn test --challenge twjPoVlB --pkcs12-file test.p12
openssl pkcs12 -in cert.p12 -info
cli.bat --mode register --provider openxpki --cn test --email --phone 501973096
#Approve Certificate Signing Request
cli.bat --mode poll --provider openxpki --cn test --password twjPoVlB
cli.bat --mode fetch --provider openxpki --cn test --password twjPoVlB --pkcs12-file test.p12
openssl pkcs12 -in test.p12 -info
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more