<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Extreme Pattern</title>
    <link>http://blog.extremepattern.com/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>enjoy</description>
    <item>
      <title>Move to wiki</title>
      <description>&lt;p&gt;為求資料集中，方便整理，這裡資料將凍結，逐漸移到&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://foo.extremepattern.com/"&gt;foo.extremepattern.com&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 02 Jul 2007 17:08:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:fdd35d3b-ae11-4c17-be98-25eddd4abc7e</guid>
      <author>LIN</author>
      <link>http://blog.extremepattern.com/articles/2007/07/02/move-to-wiki</link>
      <category>hosting</category>
    </item>
    <item>
      <title>xmarsh 0.1.3 release</title>
      <description>&lt;p&gt;新增 ssl 服務支援。&lt;/p&gt;


	&lt;p&gt;細節參閱&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://xmarsh.openfoundry.org/"&gt;xmarsh@openfoundry&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://extremepattern.com/XMARSH"&gt;extremepattern.com/XMARSH&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 10 Feb 2007 19:12:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:80aa3d20-1aa0-42be-9b28-04bf2ac282e1</guid>
      <author>LIN</author>
      <link>http://blog.extremepattern.com/articles/2007/02/10/xmarsh-0-1-3-release</link>
      <category>eclipse</category>
      <category>java</category>
    </item>
    <item>
      <title>xmarsh 0.1.0 release</title>
      <description>&lt;p&gt;xmarsh 提供 eclipse 平台的附加工具 plugins，0.1.0
版提供建立憑證中心測試功能。&lt;/p&gt;


	&lt;p&gt;細節參閱&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://xmarsh.openfoundry.org/"&gt;xmarsh@openfoundry&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://extremepattern.com/XMARSH"&gt;extremepattern.com/XMARSH&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 30 Jan 2007 03:30:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:b86918a6-b497-428c-a09f-feb59b2ca154</guid>
      <author>LIN</author>
      <link>http://blog.extremepattern.com/articles/2007/01/30/xmarsh-0-1-0-release</link>
      <category>eclipse</category>
    </item>
    <item>
      <title>Mylar Connector with SSL Client Certificate</title>
      <description>&lt;h3&gt;源起&lt;/h3&gt;


	&lt;p&gt;mylay 的連接器目前沒有提供 &lt;span class="caps"&gt;SSL&lt;/span&gt; Client Certificate 設定，
需要在 eclipse 上面作些設定，同時改一下 mylar 的程式。&lt;/p&gt;


	&lt;h3&gt;參考&lt;/h3&gt;


	&lt;ol&gt;
	&lt;li&gt;&lt;a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=151077"&gt;Add support for &lt;span class="caps"&gt;HTTP&lt;/span&gt; Digest authentication to Trac connector&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://maven.apache.org/guides/mini/guide-repository-ssl.html"&gt;Guide to Remote repository access through authenticated &lt;span class="caps"&gt;HTTPS&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://www-128.ibm.com/developerworks/tw/library/j-customssl/"&gt;為高級 &lt;span class="caps"&gt;JSSE&lt;/span&gt; 開發人員定制 &lt;span class="caps"&gt;SSL&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;/ol&gt;


	&lt;h3&gt;eclipse.ini&lt;/h3&gt;


	&lt;p&gt;目前要改 mylar ui 會需要動比較多，所以這裡用 system property 直接穿
進去用。&lt;/p&gt;


	&lt;p&gt;改這個 ini 檔的時候，注意不要多出空白等資料，不然會讀不進去，可以
開起來後，用 Help-About-Configuration Details 看看。&lt;/p&gt;


&lt;pre&gt;
-vmargs
-Xms512m
-Xmx512m
-XX:PermSize=128m
-XX:MaxPermSize=128m
-Dfile.encoding=UTF-8
-Dmylar.trustStore=trust.jks
-Dmylar.keyStore=haha.pfx
-Dmylar.trustStorePassword="trustpass" 
-Dmylar.keyStorePassword="hahapass" 
&lt;/pre&gt;

	&lt;h3&gt;org.eclipse.mylar.tasks.core.web.WebClientUtil.SslClientAuthProtocolSocketFactory&lt;/h3&gt;


	&lt;p&gt;只是改一下 SslProtocolSocketFactory.java&lt;/p&gt;


&lt;pre&gt;
private String trustStore = 
  System.getProperty("mylar.trustStore");
private String trustStorePassword = 
  System.getProperty("mylar.trustStorePassword");
private String keyStore = 
  System.getProperty("mylar.keyStore");
private String keyStorePassword = 
  System.getProperty("mylar.keyStorePassword");

protected KeyManager[] getKeyManagers() {...}
protected TrustManager[] getTrustManagers(){...} 
private SSLContext getSslContext() {
    if (sslContext == null) {
    try {
        TrustManager[] tms = getTrustManagers();
        KeyManager[] kms = getKeyManagers();
        sslContext = SSLContext.getInstance("SSL");
        sslContext.init(kms, tms, null);
        } catch (Exception e) {
            MylarStatusHandler.log(e, "could not get SSL context");
        }
    }
    return sslContext;
}
&lt;/pre&gt;

	&lt;h3&gt;org.eclipse.mylar.tasks.core.web.WebClientUtil&lt;/h3&gt;


	&lt;p&gt;再改個 setupHttpClient() 中使用的的部份就可以。&lt;/p&gt;


&lt;pre&gt;
Protocol acceptAllSsl = new Protocol("https", 
  new SslClientAuthProtocolSocketFactory(proxySettings),
  WebClientUtil.getPort(repositoryUrl));
&lt;/pre&gt;        

	&lt;h3&gt;觀察&lt;/h3&gt;


	&lt;ol&gt;
	&lt;li&gt;mylar 過不久應該會有 ui 介面可用，現在這樣可以先撐著用。&lt;/li&gt;
	&lt;/ol&gt;</description>
      <pubDate>Mon, 08 Jan 2007 03:43:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:cae945b6-5bef-497f-9190-4a8b37cb5c20</guid>
      <author>LIN</author>
      <link>http://blog.extremepattern.com/articles/2007/01/08/mylar-connector-with-ssl-client-certificate</link>
      <category>java</category>
    </item>
    <item>
      <title>Digital Signature in OpenOffice</title>
      <description>&lt;h3&gt;源起&lt;/h3&gt;


	&lt;p&gt;簽署 OpenOffice 文件需要數位簽名，所以申請了一下，雖然自然人憑證也可以，不過想使用比較非正式的
做法。&lt;/p&gt;


	&lt;h3&gt;CA 保人&lt;/h3&gt;


	&lt;p&gt;大部分的保人 certificate authorities 都要錢， &lt;a href="http://www.cacert.org/"&gt;CACert&lt;/a&gt; 
這家不用錢，可以自由使用。這類 CA 和商業的 CA 的使用差別在於方便性，
有的 OS 內建好 CA 的證書，不用再匯入。&lt;/p&gt;


	&lt;h3&gt;join 加保&lt;/h3&gt;


	&lt;ol&gt;
	&lt;li&gt;&lt;a href="https://www.cacert.org/index.php?id=1"&gt;join 加保&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;驗證  email &lt;/li&gt;
		&lt;li&gt;登入取得  client certificate. (keysize : 2048)&lt;/li&gt;
		&lt;li&gt;用 firefox 匯入&lt;/li&gt;
		&lt;li&gt;檢視  Edit -&amp;gt; Preferences -&amp;gt; Advanced -&amp;gt; View Certificates&lt;/li&gt;
		&lt;li&gt;備份到  foo.p12&lt;/li&gt;
		&lt;li&gt;按兩下 foo.p12 (windows only)&lt;/li&gt;
		&lt;li&gt;開來看看 certmgr.msc  (windows only)&lt;/li&gt;
	&lt;/ol&gt;


	&lt;h3&gt;一堆叉叉&lt;/h3&gt;


	&lt;p&gt;用 CACert 的人可能要對方匯入這個 CA 的憑證才能不看到沒驗證的叉叉符號。&lt;/p&gt;


	&lt;p&gt;要匯入 Root Certificat 需要看平台， windows 可開 IE 來匯入。  
&lt;a href="http://www.cacert.org/index.php?id=3"&gt;CAcert root cettificate&lt;/a&gt;&lt;/p&gt;


	&lt;h3&gt;觀察&lt;/h3&gt;


	&lt;ol&gt;
	&lt;li&gt;open office 加上簽名很方便，不過不能帶到 pdf 去。&lt;/li&gt;
	&lt;/ol&gt;</description>
      <pubDate>Wed, 27 Dec 2006 23:01:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:91de50e1-0d49-4f8d-93e5-3d9f633f7f4b</guid>
      <author>LIN</author>
      <link>http://blog.extremepattern.com/articles/2006/12/27/digital-signature-in-openoffice</link>
      <category>bookmark</category>
    </item>
  </channel>
</rss>
