]
Jean-Francois Denise commented on WFCORE-3748:
----------------------------------------------
I confirm, this is a bug in aesh-readline. I am working on a fix.
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
Running commands with --file option works OK. Copying commands one by one works OK
Seems to me as something is beeing overflowed.
{code}
[standalone@localhost:9990 /] # prepare server and client key materials
[standalone@localhost:9990 /] # generate server keystore
[standalone@localhost:9990 /]
/subsystem=elytron/key-store=server_keystore:add(type=PKCS12,
credential-reference={clear-text=secret},path=/tmp/server.keystore)
{"outcome" => "success"}
[standalone@localhost:9990 /]
/subsystem=elytron/key-store=server_keystore:generate-key-pair(alias=server,
distinguished-name="CN=server")
{"outcome" => "success"}
[standalone@localhost:9990 /]
/subsystem=elytron/key-store=server_keystore:export-certificate(alias=server,path=/tmp/server.certificate.pem,pem=true)
{"outcome" => "success"}
[standalone@localhost:9990 /] # generate client keystore
[standalone@localhost:9990 /]
/subsystem=elytron/key-store=client_keystore:add(type=PKCS12,
credential-reference={clear-text=secret},path=/tmp/client.keystore)
{"outcome" => "success"}
[standalone@localhost:9990 /]
/subsystem=elytron/key-store=client_keystore:generate-key-pair(alias=client,
distinguished-name="CN=client")
{"outcome" => "success"}
[standalone@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@localhost:9990 /] # save it all
[standalone@localhost:9990 /] /subsystem=elytron/key-store=server_keystore:store()
{
"outcome" => "success",
"result" => undefined
}
[standalone@localhost:9990 /] /subsystem=elytron/key-store=client_keystore:store()
{
"outcome" => "success",
"result" => undefined
}
[standalone@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@localhost:9990 /] /subsystem=elytron/key-store=client_truststore:store()
{code}