Skip to main content

asadmin - "trust certificate" prompt

1 reply [Last post]
boernd
Offline
Joined: 2011-11-08
Points: 0

Hi,

I have an asadmin multimode script that looks something like this:

create-domain --user admin --passwordfile passwords testdomain
start-domain testdomain
enable-secure-admin --passwordfile passwords
stop-domain testdomain
start-domain testdomain
create-instance --passwordfile passwords --node node instance_name
...

Always when the create-instance command is triggered I get a prompt to verify the certificate (due to enable-secure-admin i suppose):
...
Do you trust the above certificate [y|N] -->

Is there a way to automatically trust the certificate so that I do not have to type "y" during the installation process? I want to run the script without user interaction.

Regards
Bernd

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
boernd
Offline
Joined: 2011-11-08
Points: 0

Hi,

I had a look at the source code. It is possible to automatically trust the certificate by setting the --interactive=false property to the asadmin command.

Regards
Bernd