<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>williamhathaway.com &#187; ssl</title>
	<atom:link href="http://www.williamhathaway.com/wordpress/category/ssl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.williamhathaway.com/wordpress</link>
	<description></description>
	<lastBuildDate>Wed, 21 Jul 2010 03:10:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Command line completion in bash for DSEE and ZFS</title>
		<link>http://www.williamhathaway.com/wordpress/2009/03/17/command-line-completion-in-bash-for-dsee-and-zfs/</link>
		<comments>http://www.williamhathaway.com/wordpress/2009/03/17/command-line-completion-in-bash-for-dsee-and-zfs/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 16:39:10 +0000</pubDate>
		<dc:creator>William Hathaway</dc:creator>
				<category><![CDATA[dsee]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://williamhathaway.com/?p=272</guid>
		<description><![CDATA[I&#8217;m working on an environment for a customer where we are using Directory Server Enterprise Edition (DSEE) and ZFS.   On the DSEE side, my co-worker Mitch and I were inspired by Ludovic&#8217;s post a while back about setting up command line completion for  dsconf and dpconf.   One small item Mitch noticed was that in [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on an environment for a customer where we are using Directory Server Enterprise Edition (DSEE) and ZFS.   On the DSEE side, my co-worker Mitch and I were inspired by <a href="http://blogs.sun.com/Ludo">Ludovic&#8217;s</a> post a while back about setting up <a href="http://blogs.sun.com/Ludo/entry/dsee_6_0_cli_made">command line completion for  dsconf and dpcon</a>f.   One small item Mitch noticed was that in the original examples, if you had a command name that didn&#8217;t contain a hypen (like dsconf import), it wouldn&#8217;t be completed (but command like dsconf get-server-prop would be).</p>
<p>Here is what Mitch came up with:<br />
<code><br />
for cmd in dsconf dsadm dpconf dpadm; do<br />
&nbsp;&nbsp;complete -W "`$cmd --help | \<br />
&nbsp;&nbsp;&nbsp;&nbsp;perl -lane 'print $F[0] if \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(/^The accepted values for SUBCMD/ .. \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/^The accepted values for GLOBAL_OPTS/ \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and not /^The /)'`" $cmd<br />
done<br />
</code><br />
For ZFS, check out this <a href="http://www.sun.com/bigadmin/scripts/sunScripts/zfs_completion.bash.txt">script</a> on Big Admin by Mark Musante.<br />
Mitch did a small update to the script which made the list of sub-commands on the fly to account for additions.  Mitch&#8217;s updated version is available <a href="http://williamhathaway.com/downloads/zfs_completion.sh">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.williamhathaway.com/wordpress/2009/03/17/command-line-completion-in-bash-for-dsee-and-zfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing certificates with dsadm</title>
		<link>http://www.williamhathaway.com/wordpress/2007/10/24/managing-certificates-with-dsadm/</link>
		<comments>http://www.williamhathaway.com/wordpress/2007/10/24/managing-certificates-with-dsadm/#comments</comments>
		<pubDate>Wed, 24 Oct 2007 12:13:14 +0000</pubDate>
		<dc:creator>William Hathaway</dc:creator>
				<category><![CDATA[dsee]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://williamhathaway.com/?p=70</guid>
		<description><![CDATA[I was working with dsadm on a Sun Directory Server 6.2 install yesterday and ran into a snag with using the cert-export/cert-import functionality. Here are my notes: 1) When using the dsadm cert-export command, you provide a cert alias name, but it actually exports all your certificates. 2) When using dsadm cert-import, I had a [...]]]></description>
			<content:encoded><![CDATA[<p>I was working with dsadm on a Sun Directory Server 6.2 install yesterday and ran into a snag with using the cert-export/cert-import functionality.  Here are my notes:</p>
<p>1) When using the dsadm cert-export command, you provide a cert alias name, but it actually exports all your certificates.</p>
<p>2) When using dsadm cert-import, I had a problem where it re-imported the serverCert and caCert but the trust permissions on caCert weren&#8217;t correct.  This caused outbound SSL connections to fail since it wasn&#8217;t able to validate the other server&#8217;s certificate.  (this scenario was for an in-house certificate authority, so it may not apply for people using certificates issued by Verisign and the like)</p>
<p>You can read about the NSS trust flags at the <a href="http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html">certutil man page</a>.</p>
<p>Steps to show/fix the caCert trust issue (using the certutil located in /usr/sfw/bin on Solaris 10)</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p># look at the trust settings for caCert, which should be C,,</p>
<p>/var/directory/master1/alias&gt; <strong>certutil -L -d . -P slapd-</strong><br />
defaultCert                                                  CTu,u,u<br />
serverCert                                                   u,u,u<br />
<strong>caCert                                                          c,c, </strong></p>
<p># modify the trust settings to the right values</p>
<p>/var/directory/master1/alias&gt;  <strong>certutil -M -n caCert -t C,,  -d . -P slapd-</strong></p>
<p># list the trust settings again, now they are correct</p>
<p>/var/directory/master1/alias&gt; <strong>certutil -L -d . -P slapd-</strong><br />
defaultCert                                                  CTu,u,u<br />
serverCert                                                   u,u,u<br />
<strong>caCert                                                          C,,  </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.williamhathaway.com/wordpress/2007/10/24/managing-certificates-with-dsadm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Self-Signed Certificates with Sun&#8217;s Directory Server 6</title>
		<link>http://www.williamhathaway.com/wordpress/2007/04/26/self-signed-certificates-with-suns-directory-server-6/</link>
		<comments>http://www.williamhathaway.com/wordpress/2007/04/26/self-signed-certificates-with-suns-directory-server-6/#comments</comments>
		<pubDate>Thu, 26 Apr 2007 14:30:16 +0000</pubDate>
		<dc:creator>William Hathaway</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://williamhathaway.com/?p=29</guid>
		<description><![CDATA[This is basically a rehash of an email conversation I had on a mailing list with someone who was trying to get ldapsearch and the Solaris LDAP namesevice commands to communicate with a DS 6 instance over SSL. Problem: The self-signed certs generated by DS6 have a certificate name that doesn&#8217;t validate properly to tools [...]]]></description>
			<content:encoded><![CDATA[<p>This is basically a rehash of an email conversation I had on a mailing list with someone who was trying to get ldapsearch and the Solaris LDAP namesevice commands to communicate with a DS 6 instance over SSL.</p>
<p><strong>Problem</strong>: The self-signed certs generated by DS6 have a certificate name  that doesn&#8217;t validate properly to tools like the Solaris 10 ldapsearch  command or ldap_cachemgr when used in SSL mode.</p>
<p><strong>Background</strong>: Any SSL based software that wants to verify certificates  will compare the subject/cn of the certificate against the hostname of  the server.<br />
The default subject of the DS6 auto-generated certs looks something like this:</p>
<p>CN=$SHORTNAME,CN=636,CN=Directory Server,O=Sun Microsystems</p>
<p><strong>Solution</strong>: In order to work with software that validates that the  hostname matches the subject, we need to remove the existing certificate  and create a new certificate with a subject. that matches the hostname.  The steps below will generate a self-signed cert with a proper subject :</p>
<p>#<strong> dsadm stop <em>$PATH_TO_YOUR_INSTANCE</em></strong><em> </em></p>
<p># <strong>dsadm remove-cert<em> $PATH_TO_YOUR_INSTANCE</em> defaultCert </strong><br />
(will see error msg: You are going to remove the certificate used by the  instance. You will not be able to restart the instance.)</p>
<p><strong># dsadm add-selfsign-cert -S cn=<em>$YOUR_FQDN_H</em><em>ERE \</em></strong></p>
<p><strong><em>Â Â Â Â Â Â Â Â  $PATH_TO_YOUR_INSTANCE</em><em>Â </em>  defaultCert </strong></p>
<p><strong># dsadm start $PATH_TO_YOUR_INSTANCE</strong></p>
<p>Once you have done this, you will still need to export the certificate and import it into your certificate database (typically cert7.db/cert8.db for NSS based commands or a java keystore).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.williamhathaway.com/wordpress/2007/04/26/self-signed-certificates-with-suns-directory-server-6/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
