2 <li>Store the secret key <input type="text" size="40" readonly="readonly" id="secret" value="<%= @secret -%>" class="notice"/> in the file <code>~/.sonar/sonar-secret.txt</code> of the server. This file can be relocated
3 by defining the property <code>sonar.secretKeyPath</code> in <code>conf/sonar.properties</code></li>
4 <li>Restrict access to this file by making it readable and by owner only</li>
5 <li>Restart the server if the property <code>sonar.secretKeyPath</code> has been set or changed.</li>
6 <li>Copy this file on all the machines that execute code inspection. Define the property <code>sonar.secretKeyPath</code> on those machines if the path is not <code>~/.sonar/sonar-secret.txt</code>.</li>
7 <li>For each property that you want to encrypt, <%= link_to 'generate the encrypted value', {:action => 'index'}, {:class => 'link-action'} -%>
8 and replace the original values where ever they are stored
9 (configuration files, command lines)