{{#if configured}}
{{textarea name="publicKey" id="publicKey" class="textarea" value=model.publicKey readonly=true data-test-ssh-input="public-key" }}
{{#copy-button clipboardTarget="#publicKey" class="button is-primary" buttonType="button" success=(action (set-flash-message "Public Key copied!")) }} Copy {{/copy-button}}
{{#confirm-action buttonClasses="button" onConfirmAction=(action "saveConfig" (hash delete=true)) confirmMessage=(concat "This will delete the current CA keys associated with this backend. Are you sure you want to delete them?") cancelButtonText="Cancel" }} Delete {{/confirm-action}}
{{else}}
{{textarea name="privateKey" id="privateKey" class="input" value=model.privateKey}}
{{textarea name="publicKey" id="publicKey" class="input" value=model.publicKey}}
{{/if}}