|
From: Samuel L. B. <sa...@pr...> - 2014-11-24 18:26:21
|
Hi, That problem was caused by the --status option which didn't accept lower-case parameters. I've committed a fix to SVN. Regards, Samuel Den 2014-11-24 18:31, Michael Ströder skrev: > HI! > > Using latest SVN revision creating an OcspKeyBinding with the command-line tool > fails (see below). > > Ciao, Michael. > > # /opt/ejbca/bin/ejbca.sh keybind create --name > "KB_OCSP_Server_1" --token "CT_OCSP1" --type OcspKeyBinding --alias > privatesignkeyalias --sigalg SHA1WithRSA --verbose --status active --cert null > SETTING: --name as KB_OCSP_Server_1 > SETTING: --token as CT_OCSP1 > SETTING: --type as OcspKeyBinding > SETTING: --alias as privatesignkeyalias > SETTING: --sigalg as SHA1WithRSA > SETTING: --status as active > SETTING: --cert as null > Exception in thread "main" java.lang.IllegalArgumentException: No enum constant > org.cesecore.keybind.InternalKeyBindingStatus.active > at java.lang.Enum.valueOf(Enum.java:236) > at > org.cesecore.keybind.InternalKeyBindingStatus.valueOf(InternalKeyBindingStatus.java:21) > at > org.ejbca.ui.cli.keybind.InternalKeyBindingCreateCommand.execute(InternalKeyBindingCreateCommand.java:116) > at > org.ejbca.ui.cli.infrastructure.command.PasswordUsingCommandBase.execute(PasswordUsingCommandBase.java:202) > at > org.ejbca.ui.cli.infrastructure.library.CommandLibrary$Branch.execute(CommandLibrary.java:276) > at > org.ejbca.ui.cli.infrastructure.library.CommandLibrary$Branch.execute(CommandLibrary.java:286) > at > org.ejbca.ui.cli.infrastructure.library.CommandLibrary.findAndExecuteCommandFromParameters(CommandLibrary.java:67) > at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:33) > > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Ejbca-develop mailing list > Ejb...@li... > https://lists.sourceforge.net/lists/listinfo/ejbca-develop > |