[jboss-jira] [JBoss JIRA] (WFCORE-3748) Copying lot of commands into CLI prompt fails

Erich Duda (JIRA) issues at jboss.org
Tue May 29 04:21:01 EDT 2018


    [ https://issues.jboss.org/browse/WFCORE-3748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13583217#comment-13583217 ] 

Erich Duda commented on WFCORE-3748:
------------------------------------

I confirm that scenarios given in this Jira works with Wildfly Core 5.0.0.Beta1.

> Copying lot of commands into CLI prompt fails
> ---------------------------------------------
>
>                 Key: WFCORE-3748
>                 URL: https://issues.jboss.org/browse/WFCORE-3748
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 5.0.0.Alpha3
>            Reporter: Martin Choma
>            Assignee: Jean-Francois Denise
>             Fix For: 5.0.0.Beta1
>
>
> Running commands with --file option works OK. Copying commands one by one works OK
> Seems to me as something is beeing overflowed.
> {code}
> [standalone at localhost:9990 /] # prepare server and client key materials
> [standalone at localhost:9990 /] # generate server keystore
> [standalone at localhost:9990 /] /subsystem=elytron/key-store=server_keystore:add(type=PKCS12, credential-reference={clear-text=secret},path=/tmp/server.keystore)
> {"outcome" => "success"}
> [standalone at localhost:9990 /] /subsystem=elytron/key-store=server_keystore:generate-key-pair(alias=server, distinguished-name="CN=server")
> {"outcome" => "success"}
> [standalone at localhost:9990 /] /subsystem=elytron/key-store=server_keystore:export-certificate(alias=server,path=/tmp/server.certificate.pem,pem=true)
> {"outcome" => "success"}
> [standalone at localhost:9990 /] # generate client keystore
> [standalone at localhost:9990 /] /subsystem=elytron/key-store=client_keystore:add(type=PKCS12, credential-reference={clear-text=secret},path=/tmp/client.keystore)
> {"outcome" => "success"}
> [standalone at localhost:9990 /] /subsystem=elytron/key-store=client_keystore:generate-key-pair(alias=client, distinguished-name="CN=client")
> {"outcome" => "success"}
> [standalone at localhost:9990 /] /subsystem=elytron/key-store=client_keystore:export-certificate(alias=clieytron/key-store=client_truststore:import-certificate(alias=server,path=/tmp/server.certificate.pem,validate=false
> Closing ')' is missing.
> [standalone at localhost:9990 /] # save it all
> [standalone at localhost:9990 /] /subsystem=elytron/key-store=server_keystore:store()
> {
>     "outcome" => "success",
>     "result" => undefined
> }
> [standalone at localhost:9990 /] /subsystem=elytron/key-store=client_keystore:store()
> {
>     "outcome" => "success",
>     "result" => undefined
> }
> [standalone at localhost:9990 /] /subsystem=elytron/key-store=server_truststore:store()
> {
>     "outcome" => "failed",
>     "failure-description" => "WFLYCTL0216: Management resource '[
>     (\"subsystem\" => \"elytron\"),
>     (\"key-store\" => \"server_truststore\")
> ]' not found",
>     "rolled-back" => true
> }
> [standalone at localhost:9990 /] /subsystem=elytron/key-store=client_truststore:store()
> {code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list