[prev in list] [next in list] [prev in thread] [next in thread] 

List:       forgerock-openidm-commit
Subject:    [CommitOpenIDM] [5362] trunk/src/main/docbkx/integrators-guide: CR-7044 (OPENIDM-2870) Emphasis need
From:       anonymous () forgerock ! org
Date:       2015-05-26 14:32:42
Message-ID: 20150526143242.94D813F8DD () sources ! internal ! forgerock ! com
[Download RAW message or body]

[Attachment #2 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[5362] trunk/src/main/docbkx/integrators-guide: CR-7044 (OPENIDM-2870) \
Emphasis needed on changing the keystore password</title> </head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: \
verdana,arial,helvetica,sans-serif; font-size: 10pt;  } #msg dl a { font-weight: \
bold} #msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: \
bold; } #msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: \
6px; } #logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em \
0; } #logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg \
h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; } \
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; \
} #logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: \
-1.5em; padding-left: 1.5em; } #logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em \
1em 0 1em; background: white;} #logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid \
#fa0; border-bottom: 1px solid #fa0; background: #fff; } #logmsg table th { \
text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted \
#fa0; } #logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: \
0.2em 0.5em; } #logmsg table thead th { text-align: center; border-bottom: 1px solid \
#fa0; } #logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: \
6px; } #patch { width: 100%; }
#patch h4 {font-family: \
verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
 #patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, \
#patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch ins \
{background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del \
{background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, \
                .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a \
href="http://sources.forgerock.org/changelog/openidm/?cs=5362">5362</a></dd> \
<dt>Author</dt> <dd>lana</dd> <dt>Date</dt> <dd>2015-05-26 15:32:42 +0100 (Tue, 26 \
May 2015)</dd> </dl>

<h3>Log Message</h3>
<pre>CR-7044 (<a href="https://bugster.forgerock.org/jira/browse/OPENIDM-2870">OPENIDM-2870</a>) \
Emphasis needed on changing the keystore password</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcmaindocbkxintegratorsguidechapclixml">trunk/src/main/docbkx/integrators-guide/chap-cli.xml</a></li>
 <li><a href="#trunksrcmaindocbkxintegratorsguidechapsecurityxml">trunk/src/main/docbkx/integrators-guide/chap-security.xml</a></li>
 </ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcmaindocbkxintegratorsguidechapclixml"></a>
<div class="modfile"><h4>Modified: \
trunk/src/main/docbkx/integrators-guide/chap-cli.xml (5361 => 5362)</h4> <pre \
class="diff"><span> <span class="info">--- \
trunk/src/main/docbkx/integrators-guide/chap-cli.xml	2015-05-25 11:01:33 UTC (rev \
                5361)
+++ trunk/src/main/docbkx/integrators-guide/chap-cli.xml	2015-05-26 14:32:42 UTC (rev \
5362) </span><span class="lines">@@ -540,8 +540,15 @@
</span><span class="cx"> AES:606d80ae316be58e94439f91ad8ce1c0  \
&lt;/computeroutput&gt; </span><span class="cx">   &lt;/screen&gt;
</span><span class="cx">   
</span><del>-  &lt;para&gt;The default keystore password is \
                &lt;literal&gt;changeit&lt;/literal&gt;. You 
-  should change this password after installation.&lt;/para&gt;
</del><ins>+  &lt;para&gt;
+   The default keystore password is &lt;literal&gt;changeit&lt;/literal&gt;. For \
security +   reasons, you &lt;emphasis&gt;must&lt;/emphasis&gt; change this password \
in a production +   environment. For information about changing the keystore \
password, see &lt;link +   xlink:show=&quot;new&quot;
+   xlink:href=&quot;integrators-guide#security-keystore-password&quot;
+   xlink:role=&quot;http://docbook.org/xlink/role/olink&quot;&gt;&lt;citetitle&gt;Change \
the +   Default Keystore Password&lt;/citetitle&gt;&lt;/link&gt;.
+  &lt;/para&gt;
</ins><span class="cx">   
</span><span class="cx">   &lt;para&gt;To import a new secret key named \
&lt;replaceable&gt;my-new-key&lt;/replaceable&gt;,  </span><span class="cx">   run \
the following command:&lt;/para&gt; </span></span></pre></div>
<a id="trunksrcmaindocbkxintegratorsguidechapsecurityxml"></a>
<div class="modfile"><h4>Modified: \
trunk/src/main/docbkx/integrators-guide/chap-security.xml (5361 => 5362)</h4> <pre \
class="diff"><span> <span class="info">--- \
trunk/src/main/docbkx/integrators-guide/chap-security.xml	2015-05-25 11:01:33 UTC \
                (rev 5361)
+++ trunk/src/main/docbkx/integrators-guide/chap-security.xml	2015-05-26 14:32:42 UTC \
(rev 5362) </span><span class="lines">@@ -800,47 +800,130 @@
</span><span class="cx">    &lt;primary&gt;Passwords&lt;/primary&gt;
</span><span class="cx">    &lt;secondary&gt;Replacing defaults&lt;/secondary&gt;
</span><span class="cx">   &lt;/indexterm&gt;
</span><del>-  &lt;para&gt;
-   The default security settings are adequate for evaluation purposes. In
-   production environments, change at least the password of the default
-   administrative user (&lt;literal&gt;openidm-admin&lt;/literal&gt;).
-  &lt;/para&gt;
-  &lt;para&gt;
-   To change the password of the default administrative user, send a PUT
-   request to the user object. The following example changes the password of
-   the &lt;literal&gt;openidm-admin&lt;/literal&gt; user to \
                &lt;literal&gt;Passw0rd&lt;/literal&gt;:
-  &lt;/para&gt;
-  &lt;screen&gt;&lt;userinput&gt;$ curl \
- --cacert self-signed.crt \
- --header &quot;Content-Type: application/json&quot; \
- --header &quot;X-OpenIDM-Username: openidm-admin&quot; \
- --header &quot;X-OpenIDM-Password: openidm-admin&quot; \
- --request PUT \
- --data '{
-    &quot;password&quot;: &quot;Passw0rd&quot;,
-    &quot;userName&quot;: &quot;openidm-admin&quot;,
-    &quot;roles&quot;: &quot;openidm-admin,openidm-authorized&quot;,
-    &quot;_id&quot;: &quot;openidm-admin&quot;
- }' \
- &quot;https://localhost:8443/openidm/repo/internal/user/openidm-admin&quot;&lt;/userinput&gt;
                
-&lt;computeroutput&gt;{
-  &quot;roles&quot;: &quot;openidm-admin,openidm-authorized&quot;,
-  &quot;password&quot;: {
-    &quot;$crypto&quot;: {
</del><ins>+  &lt;itemizedlist&gt;
+   &lt;para&gt;
+    The default security settings are adequate for evaluation purposes. In
+    production environments, change at least the following settings:
+   &lt;/para&gt;
+   &lt;listitem&gt;
+    &lt;para&gt;
+     The password of the default administrative user
+     (&lt;literal&gt;openidm-admin&lt;/literal&gt;)
+    &lt;/para&gt;
+   &lt;/listitem&gt;
+   &lt;listitem&gt;
+    &lt;para&gt;
+     The default keystore password
+    &lt;/para&gt;
+   &lt;/listitem&gt;
+  &lt;/itemizedlist&gt;
+
+  &lt;procedure xml:id=&quot;change-default-admin-pwd&quot;&gt;
+   &lt;title&gt;Change the Default Administrator Password&lt;/title&gt;
+   &lt;step&gt;
+    &lt;para&gt;
+     To change the password of the default administrative user, send a PUT
+     request to the user object.
+    &lt;/para&gt;
+    &lt;para&gt;
+     The following example changes the password of the
+     &lt;literal&gt;openidm-admin&lt;/literal&gt; user to \
&lt;literal&gt;Passw0rd&lt;/literal&gt;: +    &lt;/para&gt;
+    &lt;screen&gt;$&lt;userinput&gt; curl \
+     --cacert self-signed.crt \
+     --header &quot;Content-Type: application/json&quot; \
+     --header &quot;X-OpenIDM-Username: openidm-admin&quot; \
+     --header &quot;X-OpenIDM-Password: openidm-admin&quot; \
+     --request PUT \
+     --data '{
+     &quot;password&quot;: &quot;Passw0rd&quot;,
+     &quot;userName&quot;: &quot;openidm-admin&quot;,
+     &quot;roles&quot;: &quot;openidm-admin,openidm-authorized&quot;,
+     &quot;_id&quot;: &quot;openidm-admin&quot;
+     }' \
+     &quot;https://localhost:8443/openidm/repo/internal/user/openidm-admin&quot;&lt;/userinput&gt;
 +     &lt;computeroutput&gt;{
+      &quot;roles&quot;: &quot;openidm-admin,openidm-authorized&quot;,
+      &quot;password&quot;: {
+      &quot;$crypto&quot;: {
</ins><span class="cx">       &quot;value&quot;: {
</span><del>-        &quot;key&quot;: &quot;openidm-sym-default&quot;,
-        &quot;iv&quot;: &quot;USfN9kARk4QjoyjGa/r8WA==&quot;,
-        &quot;cipher&quot;: &quot;AES/CBC/PKCS5Padding&quot;,
-        &quot;data&quot;: &quot;27tDQg49z8nWqvIOEh7VAg==&quot;
</del><ins>+      &quot;key&quot;: &quot;openidm-sym-default&quot;,
+      &quot;iv&quot;: &quot;USfN9kARk4QjoyjGa/r8WA==&quot;,
+      &quot;cipher&quot;: &quot;AES/CBC/PKCS5Padding&quot;,
+      &quot;data&quot;: &quot;27tDQg49z8nWqvIOEh7VAg==&quot;
</ins><span class="cx">       },
</span><span class="cx">       &quot;type&quot;: &quot;x-simple-encryption&quot;
</span><del>-    }
-  },
-  &quot;_id&quot;: &quot;openidm-admin&quot;,
-  &quot;userName&quot;: &quot;openidm-admin&quot;,
-  &quot;_rev&quot;: &quot;2&quot;
-}&lt;/computeroutput&gt;
-  &lt;/screen&gt;
</del><ins>+      }
+      },
+      &quot;_id&quot;: &quot;openidm-admin&quot;,
+      &quot;userName&quot;: &quot;openidm-admin&quot;,
+      &quot;_rev&quot;: &quot;2&quot;
+      }&lt;/computeroutput&gt;
+    &lt;/screen&gt;
+   &lt;/step&gt;
+  &lt;/procedure&gt;
+
+  &lt;procedure xml:id=&quot;security-keystore-password&quot;&gt;
+   &lt;title&gt;Change the Default Keystore Password&lt;/title&gt;
+   &lt;para&gt;
+    OpenIDM uses the information in \
&lt;filename&gt;conf/boot/boot.properties&lt;/filename&gt;, +    including the \
keystore password, to start up. The keystore password is +    \
&lt;literal&gt;changeit&lt;/literal&gt; by default, and is stored in clear text in \
the +    &lt;filename&gt;boot.properties&lt;/filename&gt; file.
+   &lt;/para&gt;
+   &lt;para&gt;
+    You &lt;emphasis&gt;must&lt;/emphasis&gt; set a strong keystore password in any
+    production deployment, but especially in cluster deployments. In a cluster
+    deployment, the keystore is distributed through the repository. The strength
+    of the keystore password is therefore the only thing that protects your
+    deployment against exposure of the keystore.
+   &lt;/para&gt;
+   &lt;para&gt;
+    To set an obfuscated version of the keystore password in the
+    &lt;filename&gt;boot.properties&lt;/filename&gt; file, follow these steps.
+   &lt;/para&gt;
+   &lt;step&gt;
+    &lt;para&gt;
+     Generate an obfuscated version of the password, by using the crypto bundle
+     provided with OpenIDM:
+    &lt;/para&gt;
+    &lt;screen&gt;$ &lt;userinput&gt;$ java -jar \
/path/to/openidm/bundle/openidm-crypto-${project.version}.jar&lt;/userinput&gt; \
+&lt;computeroutput&gt;This utility helps obfuscate passwords to prevent casual \
observation. +It is not securely encrypted and needs further measures to prevent \
disclosure. +Please enter the password:
+OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0
+CRYPT:a8b5a01ba48a306f300b62a1541734c7
+&lt;/computeroutput&gt;&lt;/screen&gt;
+   &lt;/step&gt;
+   &lt;step&gt;
+    &lt;para&gt;
+     Paste either the obfuscated password \
(&lt;literal&gt;OBF:xxxxxxx&lt;/literal&gt;) or +     the encrypted password \
(&lt;literal&gt;CRYPT:xxxxxxx&lt;/literal&gt;) into the +     \
&lt;filename&gt;conf/boot/boot.properties&lt;/filename&gt; file. +    &lt;/para&gt;
+    &lt;para&gt;
+     Comment out the regular keystore password and remove the comment tag,
+     either from the line that contains the obfuscated password or from the line
+     that contains the encrypted password:
+    &lt;/para&gt;
+    &lt;screen&gt;$ &lt;userinput&gt;more \
conf/boot/boot.properties&lt;/userinput&gt; +&lt;computeroutput&gt;...
+# Keystore password, adjust to match your keystore and protect this file
+# openidm.keystore.password=changeit
+openidm.truststore.password=changeit
+
+# Optionally use the crypto bundle to obfuscate the password and set one of these:
+openidm.keystore.password=OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0
+# openidm.keystore.password=CRYPT:a8b5a01ba48a306f300b62a1541734c7
+...  &lt;/computeroutput&gt;&lt;/screen&gt;
+   &lt;/step&gt;
+   &lt;step&gt;
+    &lt;para&gt;
+     Restart OpenIDM.
+    &lt;/para&gt;
+    &lt;screen&gt;$ &lt;userinput&gt;./startup.sh&lt;/userinput&gt;&lt;/screen&gt;
+   &lt;/step&gt;
+  &lt;/procedure&gt;
</ins><span class="cx">  &lt;/section&gt;
</span><span class="cx"> 
</span><span class="cx">  &lt;section xml:id=&quot;security-jetty&quot;&gt;
</span><span class="lines">@@ -1029,68 +1112,6 @@
</span><span class="cx">   &lt;/procedure&gt;
</span><span class="cx">  &lt;/section&gt;
</span><span class="cx"> 
</span><del>- &lt;section xml:id=&quot;security-bootstrap&quot;&gt;
-  &lt;title&gt;Obfuscate Bootstrap Information&lt;/title&gt;
-
-  &lt;para&gt;
-   OpenIDM uses the information in \
                &lt;filename&gt;conf/boot/boot.properties&lt;/filename&gt;,
-   including the keystore password, to start up. The keystore password is
-   &lt;literal&gt;changeit&lt;/literal&gt; by default, and is stored in clear text \
                in the
-   &lt;filename&gt;boot.properties&lt;/filename&gt; file. To set an obfuscated \
                version of
-   the keystore password in the &lt;filename&gt;boot.properties&lt;/filename&gt; \
                file,
-   follow these steps.
-  &lt;/para&gt;
-
-  &lt;orderedlist&gt;
-   &lt;listitem&gt;
-    &lt;para&gt;
-     Generate an obfuscated version of the password, by using the crypto bundle
-     provided with OpenIDM:
-    &lt;/para&gt;
-    &lt;screen&gt;$ &lt;userinput&gt;$ java -jar \
                /path/to/openidm/bundle/openidm-crypto-&lt;?eval \
                ${project.version}?&gt;.jar
-     &lt;/userinput&gt;
-     &lt;computeroutput&gt;
-This utility helps obfuscate passwords to prevent casual observation.
-It is not securely encrypted and needs further measures to prevent disclosure.
-Please enter the password:
-OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0
-CRYPT:a8b5a01ba48a306f300b62a1541734c7
-     &lt;/computeroutput&gt;
-    &lt;/screen&gt;
-   &lt;/listitem&gt;
-   &lt;listitem&gt;
-    &lt;para&gt;
-     Paste either the obfuscated password \
                (&lt;literal&gt;OBF:xxxxxxx&lt;/literal&gt;) or
-     the encrypted password (&lt;literal&gt;CRYPT:xxxxxxx&lt;/literal&gt;) into the
-     &lt;filename&gt;conf/boot/boot.properties&lt;/filename&gt; file. Comment out \
                the
-     regular keystore password and remove the comment tag, either from the line
-     that contains the obfuscated password or from the line that contains the
-     encrypted password:
-    &lt;/para&gt;
-    &lt;screen&gt;
-$ &lt;userinput&gt;more conf/boot/boot.properties&lt;/userinput&gt;
-     &lt;computeroutput&gt;
-...
-# Keystore password, adjust to match your keystore and protect this file
-# openidm.keystore.password=changeit
-openidm.truststore.password=changeit
-
-# Optionally use the crypto bundle to obfuscate the password and set one of these:
-openidm.keystore.password=OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0
-# openidm.keystore.password=CRYPT:a8b5a01ba48a306f300b62a1541734c7
-...  &lt;/computeroutput&gt;
-    &lt;/screen&gt;
-   &lt;/listitem&gt;
-   &lt;listitem&gt;
-    &lt;para&gt;
-     Restart OpenIDM.
-    &lt;/para&gt;
-    &lt;screen&gt;$ ./startup.sh&lt;/screen&gt;
-   &lt;/listitem&gt;
-  &lt;/orderedlist&gt;
-
-  &lt;/section&gt;
- 
</del><span class="cx">  &lt;section xml:id=&quot;security-remove-dev-tools&quot;&gt;
</span><span class="cx">   &lt;title&gt;Remove or Protect Development &amp;amp; Debug \
Tools&lt;/title&gt; </span><span class="cx">   &lt;para&gt;
</span></span></pre>
</div>
</div>
<div id="footer">Copyright (c) by ForgeRock. All rights reserved.</div>

</body>
</html>



_______________________________________________
CommitOpenIDM mailing list
CommitOpenIDM@forgerock.org
https://lists.forgerock.org/mailman/listinfo/commitopenidm


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic