<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>takie tam dyrdymały</title>
	<atom:link href="http://starmacco.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://starmacco.wordpress.com</link>
	<description>jeszcze jeden ekshibicjonista piszacy na sieci</description>
	<lastBuildDate>Fri, 13 Nov 2009 09:47:03 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>pl</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='starmacco.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/897130d7c03a065f9e1728d93a944b9a?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>takie tam dyrdymały</title>
		<link>http://starmacco.wordpress.com</link>
	</image>
			<item>
		<title>Sun One Web Server 6.1 Sp6 config files bug</title>
		<link>http://starmacco.wordpress.com/2009/11/13/sun-one-web-server-6-1-sp6-config-files-bug/</link>
		<comments>http://starmacco.wordpress.com/2009/11/13/sun-one-web-server-6-1-sp6-config-files-bug/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 09:47:03 +0000</pubDate>
		<dc:creator>robertstarmach</dc:creator>
				<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://starmacco.wordpress.com/2009/11/13/sun-one-web-server-6-1-sp6-config-files-bug/</guid>
		<description><![CDATA[This is very important.
SunOne (iplanet) configs are *NOT* xml
One space at the begging of the property Service in weblogic object in obj.conf deactivates entry.
NSAPI plugin is activating
There is no error that something is wrong with config
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=82&subd=starmacco&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is very important.<br />
SunOne (iplanet) configs are *NOT* xml<br />
One space at the begging of the property Service in weblogic object in obj.conf deactivates entry.</p>
<p>NSAPI plugin is activating<br />
There is no error that something is wrong with config</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/starmacco.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/starmacco.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/starmacco.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/starmacco.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/starmacco.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/starmacco.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/starmacco.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/starmacco.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/starmacco.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/starmacco.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=82&subd=starmacco&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://starmacco.wordpress.com/2009/11/13/sun-one-web-server-6-1-sp6-config-files-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0564c62e56a2390b7bf5c17318b2473f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robertstarmach</media:title>
		</media:content>
	</item>
		<item>
		<title>Decrypting 3DES in weblogic 8.1 configuration</title>
		<link>http://starmacco.wordpress.com/2009/10/26/decrypting-3des-in-weblogic-8-1-configuration/</link>
		<comments>http://starmacco.wordpress.com/2009/10/26/decrypting-3des-in-weblogic-8-1-configuration/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 12:07:43 +0000</pubDate>
		<dc:creator>robertstarmach</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[weblogic]]></category>

		<guid isPermaLink="false">http://starmacco.wordpress.com/?p=75</guid>
		<description><![CDATA[Very useful tip, how to decrypt 3DES hashed password from configurations.
http://gustlik.wordpress.com/2008/08/06/decryption-of-configuration-passwords-in-weblogic/
You should add below code to class  from here:
http://geronimo.apache.org/apidocs/2.0.1/src-html/org/apache/geronimo/converter/bea/Weblogic81Utils.html
Below my version of main.
With some errors handlings
public static void main(String args[]) {
try{
if ( args== null &#124;&#124; args.length&#60;3 ) {
System.out.println("Usage:" );
System.out.println("arg1 = Server/lib or the Directory which has the requried JAR files");
System.out.println("arg2 = App Domain or the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=75&subd=starmacco&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Very useful tip, how to decrypt 3DES hashed password from configurations.</p>
<p><a href="http://gustlik.wordpress.com/2008/08/06/decryption-of-configuration-passwords-in-weblogic/">http://gustlik.wordpress.com/2008/08/06/decryption-of-configuration-passwords-in-weblogic/</a></p>
<p>You should add below code to class  from here:</p>
<p><a href="http://geronimo.apache.org/apidocs/2.0.1/src-html/org/apache/geronimo/converter/bea/Weblogic81Utils.html">http://geronimo.apache.org/apidocs/2.0.1/src-html/org/apache/geronimo/converter/bea/Weblogic81Utils.htm</a>l</p>
<p>Below my version of main.<br />
With some errors handlings</p>
<pre>public static void main(String args[]) {
try{
if ( args== null || args.length&lt;3 ) {
System.out.println("Usage:" );
System.out.println("arg1 = Server/lib or the Directory which has the requried JAR files");
System.out.println("arg2 = App Domain or the Directory which has SerializedSystemIni.dat");
System.out.println("arg3 = 3DES hashed password");
System.exit(0);
}
if  (! new File(args[0]).exists()) {
System.out.println("Path ["+args[0]+"] does not exists");
System.exit(0);
}
if  (! new File(args[1]).exists()) {
System.out.println("Path ["+args[1]+"] does not exists");
System.exit(0);</pre>
<pre>}
String beaDir = args[0];
String appDir = args[1];
String hashedPassword = args[2];
Weblogic81Utils weblogic81Utils = new Weblogic81Utils(beaDir, appDir);
String plainTextPassword = weblogic81Utils.decryptString(hashedPassword);
String configXML = weblogic81Utils.getConfigXML();
Properties bootProperties = (Properties) weblogic81Utils.getBootProperties();
System.out.println("---------------------------------------------------------------------");
System.out.println(hashedPassword + " == " + plainTextPassword);
System.out.println("boot.properties" + " &lt;username&gt; " + bootProperties.getProperty("username"));
System.out.println("boot.properties" + " &lt;password&gt; " + bootProperties.getProperty("password"));
System.out.println("---------------------------------------------------------------------");
}
catch (Exception e) {
    throw (RuntimeException)new IllegalArgumentException("Unable to initialize encryption routines from provided ar
guments").initCause(e);
}
} //end of main</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/starmacco.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/starmacco.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/starmacco.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/starmacco.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/starmacco.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/starmacco.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/starmacco.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/starmacco.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/starmacco.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/starmacco.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=75&subd=starmacco&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://starmacco.wordpress.com/2009/10/26/decrypting-3des-in-weblogic-8-1-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0564c62e56a2390b7bf5c17318b2473f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robertstarmach</media:title>
		</media:content>
	</item>
		<item>
		<title>Import private key and certificate into Java Key Store (JKS)</title>
		<link>http://starmacco.wordpress.com/2009/10/02/import-private-key-and-certificate-into-java-key-store-jks/</link>
		<comments>http://starmacco.wordpress.com/2009/10/02/import-private-key-and-certificate-into-java-key-store-jks/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 10:01:31 +0000</pubDate>
		<dc:creator>robertstarmach</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[weblogic]]></category>

		<guid isPermaLink="false">http://starmacco.wordpress.com/?p=72</guid>
		<description><![CDATA[Receipt taken from
http://www.agentbob.info/agentbob/79-AB.html
This method describe how to
Import private key and certificate into Java Key Store (JKS).
firtst you have to convert key in  PEM format  to DER with openssl
openssl pkcs8 -topk8 -nocrypt -in key.pem -inform PEM -out key.der -outform DER
openssl x509 -in cert.pem -inform PEM -out cert.der -outform DER

in next step you can kreate keystore with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=72&subd=starmacco&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Receipt taken from</p>
<p>http://www.agentbob.info/agentbob/79-AB.html</p>
<p>This method describe how to</p>
<p><a href="http://www.agentbob.info/agentbob/79-AB.html">Import private key and certificate into Java Key Store (JKS)</a>.</p>
<p>firtst you have to convert key in  PEM format  to DER with openssl</p>
<pre>openssl pkcs8 -topk8 -nocrypt -in key.pem -inform PEM -out key.der -outform DER
openssl x509 -in cert.pem -inform PEM -out cert.der -outform DER

in next step you can kreate keystore with java class below.

user@host:~$ <strong>java ImportKey key.der cert.der</strong>
Using keystore-file : /home/user/keystore.ImportKey
One certificate, no chain.
Key and certificate stored.
Alias:importkey  Password:importkey</pre>
<p>import java.security.*;<br />
import java.io.IOException;<br />
import java.io.InputStream;<br />
import java.io.FileInputStream;<br />
import java.io.DataInputStream;<br />
import java.io.ByteArrayInputStream;<br />
import java.io.FileOutputStream;<br />
import java.security.spec.*;<br />
import java.security.cert.Certificate;<br />
import java.security.cert.CertificateFactory;<br />
import java.util.Collection;<br />
import java.util.Iterator;</p>
<p>/**<br />
* ImportKey.java<br />
*<br />
* &lt;p&gt;This class imports a key and a certificate into a keystore<br />
* (&lt;code&gt;$home/keystore.ImportKey&lt;/code&gt;). If the keystore is<br />
* already present, it is simply deleted. Both the key and the<br />
* certificate file must be in &lt;code&gt;DER&lt;/code&gt;-format. The key must be<br />
* encoded with &lt;code&gt;PKCS#8&lt;/code&gt;-format. The certificate must be<br />
* encoded in &lt;code&gt;X.509&lt;/code&gt;-format.&lt;/p&gt;<br />
*<br />
* &lt;p&gt;Key format:&lt;/p&gt;<br />
* &lt;p&gt;&lt;code&gt;openssl pkcs8 -topk8 -nocrypt -in YOUR.KEY -out YOUR.KEY.der<br />
* -outform der&lt;/code&gt;&lt;/p&gt;<br />
* &lt;p&gt;Format of the certificate:&lt;/p&gt;<br />
* &lt;p&gt;&lt;code&gt;openssl x509 -in YOUR.CERT -out YOUR.CERT.der -outform<br />
* der&lt;/code&gt;&lt;/p&gt;<br />
* &lt;p&gt;Import key and certificate:&lt;/p&gt;<br />
* &lt;p&gt;&lt;code&gt;java comu.ImportKey YOUR.KEY.der YOUR.CERT.der&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;<br />
*<br />
* &lt;p&gt;&lt;em&gt;Caution:&lt;/em&gt; the old &lt;code&gt;keystore.ImportKey&lt;/code&gt;-file is<br />
* deleted and replaced with a keystore only containing &lt;code&gt;YOUR.KEY&lt;/code&gt;<br />
* and &lt;code&gt;YOUR.CERT&lt;/code&gt;. The keystore and the key has no password;<br />
* they can be set by the &lt;code&gt;keytool -keypasswd&lt;/code&gt;-command for setting<br />
* the key password, and the &lt;code&gt;keytool -storepasswd&lt;/code&gt;-command to set<br />
* the keystore password.<br />
* &lt;p&gt;The key and the certificate is stored under the alias<br />
* &lt;code&gt;importkey&lt;/code&gt;; to change this, use &lt;code&gt;keytool -keyclone&lt;/code&gt;.<br />
*<br />
* Created: Fri Apr 13 18:15:07 2001<br />
* Updated: Fri Apr 19 11:03:00 2002<br />
*<br />
* @author Joachim Karrer, Jens Carlberg<br />
* @version 1.1<br />
**/<br />
public class ImportKey  {</p>
<p>/**<br />
* &lt;p&gt;Creates an InputStream from a file, and fills it with the complete<br />
* file. Thus, available() on the returned InputStream will return the<br />
* full number of bytes the file contains&lt;/p&gt;<br />
* @param fname The filename<br />
* @return The filled InputStream<br />
* @exception IOException, if the Streams couldn&#8217;t be created.<br />
**/<br />
private static InputStream fullStream ( String fname ) throws IOException {<br />
FileInputStream fis = new FileInputStream(fname);<br />
DataInputStream dis = new DataInputStream(fis);<br />
byte[] bytes = new byte[dis.available()];<br />
dis.readFully(bytes);<br />
ByteArrayInputStream bais = new ByteArrayInputStream(bytes);<br />
return bais;<br />
}</p>
<p>/**<br />
* &lt;p&gt;Takes two file names for a key and the certificate for the key,<br />
* and imports those into a keystore. Optionally it takes an alias<br />
* for the key.<br />
* &lt;p&gt;The first argument is the filename for the key. The key should be<br />
* in PKCS8-format.<br />
* &lt;p&gt;The second argument is the filename for the certificate for the key.<br />
* &lt;p&gt;If a third argument is given it is used as the alias. If missing,<br />
* the key is imported with the alias importkey<br />
* &lt;p&gt;The name of the keystore file can be controlled by setting<br />
* the keystore property (java -Dkeystore=mykeystore). If no name<br />
* is given, the file is named &lt;code&gt;keystore.ImportKey&lt;/code&gt;<br />
* and placed in your home directory.<br />
* @param args [0] Name of the key file, [1] Name of the certificate file<br />
* [2] Alias for the key.<br />
**/<br />
public static void main ( String args[]) {</p>
<p>// change this if you want another password by default<br />
String keypass = &#8220;importkey&#8221;;</p>
<p>// change this if you want another alias by default<br />
String defaultalias = &#8220;importkey&#8221;;</p>
<p>// change this if you want another keystorefile by default<br />
String keystorename = System.getProperty(&#8220;keystore&#8221;);</p>
<p>if (keystorename == null)<br />
keystorename = System.getProperty(&#8220;user.home&#8221;)+<br />
System.getProperty(&#8220;file.separator&#8221;)+<br />
&#8220;keystore.ImportKey&#8221;; // especially this <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>// parsing command line input<br />
String keyfile = &#8220;&#8221;;<br />
String certfile = &#8220;&#8221;;<br />
if (args.length &lt; 2 || args.length&gt;3) {<br />
System.out.println(&#8220;Usage: java comu.ImportKey keyfile certfile [alias]&#8220;);<br />
System.exit(0);<br />
} else {<br />
keyfile = args[0];<br />
certfile = args[1];<br />
if (args.length&gt;2)<br />
defaultalias = args[2];<br />
}</p>
<p>try {<br />
// initializing and clearing keystore<br />
KeyStore ks = KeyStore.getInstance(&#8220;JKS&#8221;, &#8220;SUN&#8221;);<br />
ks.load( null , keypass.toCharArray());<br />
System.out.println(&#8220;Using keystore-file : &#8220;+keystorename);<br />
ks.store(new FileOutputStream ( keystorename  ),<br />
keypass.toCharArray());<br />
ks.load(new FileInputStream ( keystorename ),<br />
keypass.toCharArray());</p>
<p>// loading Key<br />
InputStream fl = fullStream (keyfile);<br />
byte[] key = new byte[fl.available()];<br />
KeyFactory kf = KeyFactory.getInstance(&#8220;RSA&#8221;);<br />
fl.read ( key, 0, fl.available() );<br />
fl.close();<br />
PKCS8EncodedKeySpec keysp = new PKCS8EncodedKeySpec ( key );<br />
PrivateKey ff = kf.generatePrivate (keysp);</p>
<p>// loading CertificateChain<br />
CertificateFactory cf = CertificateFactory.getInstance(&#8220;X.509&#8243;);<br />
InputStream certstream = fullStream (certfile);</p>
<p>Collection c = cf.generateCertificates(certstream) ;<br />
Certificate[] certs = new Certificate[c.toArray().length];</p>
<p>if (c.size() == 1) {<br />
certstream = fullStream (certfile);<br />
System.out.println(&#8220;One certificate, no chain.&#8221;);<br />
Certificate cert = cf.generateCertificate(certstream) ;<br />
certs[0] = cert;<br />
} else {<br />
System.out.println(&#8220;Certificate chain length: &#8220;+c.size());<br />
certs = (Certificate[])c.toArray();<br />
}</p>
<p>// storing keystore<br />
ks.setKeyEntry(defaultalias, ff,<br />
keypass.toCharArray(),<br />
certs );<br />
System.out.println (&#8220;Key and certificate stored.&#8221;);<br />
System.out.println (&#8220;Alias:&#8221;+defaultalias+&#8221;  Password:&#8221;+keypass);<br />
ks.store(new FileOutputStream ( keystorename ),<br />
keypass.toCharArray());<br />
} catch (Exception ex) {<br />
ex.printStackTrace();<br />
}<br />
}</p>
<p>}// KeyStore</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/starmacco.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/starmacco.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/starmacco.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/starmacco.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/starmacco.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/starmacco.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/starmacco.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/starmacco.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/starmacco.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/starmacco.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=72&subd=starmacco&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://starmacco.wordpress.com/2009/10/02/import-private-key-and-certificate-into-java-key-store-jks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0564c62e56a2390b7bf5c17318b2473f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robertstarmach</media:title>
		</media:content>
	</item>
		<item>
		<title>gatherting SSL private key from JKS keystore with java class</title>
		<link>http://starmacco.wordpress.com/2009/10/02/gatherting-ssl-private-key-from-jks-keystore-with-java-class/</link>
		<comments>http://starmacco.wordpress.com/2009/10/02/gatherting-ssl-private-key-from-jks-keystore-with-java-class/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 09:06:21 +0000</pubDate>
		<dc:creator>robertstarmach</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[weblogic]]></category>

		<guid isPermaLink="false">http://starmacco.wordpress.com/2009/10/02/gatherting-ssl-private-key-from-jks-keystore-with-java-class/</guid>
		<description><![CDATA[Working java class example from page:
http://stackoverflow.com/questions/150167/how-do-i-list-export-private-keys-from-a-keystore
import java.io.FileInputStream;
import java.security.Key;
import java.security.KeyStore;
import sun.misc.BASE64Encoder;

public class DumpPrivateKey {
&#160; &#160; &#160;/**
&#160; &#160; &#160;* Provides the missing functionality of keytool 
&#160; &#160; &#160;* that Apache needs for SSLCertificateKeyFile.
&#160; &#160; &#160;*
&#160; &#160; &#160;* @param args &#160;&#60;ul&#62;
&#160; &#160; &#160;* &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#60;li&#62; [0] Keystore filename.
&#160; &#160; &#160;* &#160; &#160; &#160; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=71&subd=starmacco&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Working java class example from page:</p>
<p>http://stackoverflow.com/questions/150167/how-do-i-list-export-private-keys-from-a-keystore</p>
<pre class="prettyprint"><code><span class="kwd">import</span><span class="pln"> java</span><span class="pun">.</span><span class="pln">io</span><span class="pun">.</span><span class="typ">FileInputStream</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">import</span><span class="pln"> java</span><span class="pun">.</span><span class="pln">security</span><span class="pun">.</span><span class="typ">Key</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">import</span><span class="pln"> java</span><span class="pun">.</span><span class="pln">security</span><span class="pun">.</span><span class="typ">KeyStore</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">import</span><span class="pln"> sun</span><span class="pun">.</span><span class="pln">misc</span><span class="pun">.</span><span class="pln">BASE64Encoder</span><span class="pun">;</span><span class="pln">

</span><span class="kwd">public</span><span class="pln"> </span><span class="kwd">class</span><span class="pln"> </span><span class="typ">DumpPrivateKey</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
&nbsp; &nbsp; &nbsp;</span><span class="com">/**
&nbsp; &nbsp; &nbsp;* Provides the missing functionality of keytool 
&nbsp; &nbsp; &nbsp;* that Apache needs for SSLCertificateKeyFile.
&nbsp; &nbsp; &nbsp;*
&nbsp; &nbsp; &nbsp;* @param args &nbsp;&lt;ul&gt;
&nbsp; &nbsp; &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt; [0] Keystore filename.
&nbsp; &nbsp; &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt; [1] Keystore password.
&nbsp; &nbsp; &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt; [2] alias
&nbsp; &nbsp; &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/ul&gt;
&nbsp; &nbsp; &nbsp;*/</span><span class="pln">
&nbsp; &nbsp; </span><span class="kwd">static</span><span class="pln"> </span><span class="kwd">public</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> main</span><span class="pun">(</span><span class="typ">String</span><span class="pun">[]</span><span class="pln"> args</span><span class="pun">)</span><span class="pln">
&nbsp; &nbsp; </span><span class="kwd">throws</span><span class="pln"> </span><span class="typ">Exception</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="typ">KeyStore</span><span class="pln"> ks </span><span class="pun">=</span><span class="pln"> </span><span class="typ">KeyStore</span><span class="pun">.</span><span class="pln">getInstance</span><span class="pun">(</span><span class="str">"jks"</span><span class="pun">);</span><span class="pln">
&nbsp; &nbsp; &nbsp; &nbsp; ks</span><span class="pun">.</span><span class="pln">load</span><span class="pun">(</span><span class="kwd">new</span><span class="pln"> </span><span class="typ">FileInputStream</span><span class="pun">(</span><span class="pln">args</span><span class="pun">[</span><span class="lit">0</span><span class="pun">]),</span><span class="pln"> args</span><span class="pun">[</span><span class="lit">1</span><span class="pun">].</span><span class="pln">toCharArray</span><span class="pun">());</span><span class="pln">
&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="typ">Key</span><span class="pln"> key </span><span class="pun">=</span><span class="pln"> ks</span><span class="pun">.</span><span class="pln">getKey</span><span class="pun">(</span><span class="pln">args</span><span class="pun">[</span><span class="lit">2</span><span class="pun">],</span><span class="pln"> args</span><span class="pun">[</span><span class="lit">1</span><span class="pun">].</span><span class="pln">toCharArray</span><span class="pun">());</span><span class="pln">
&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="typ">String</span><span class="pln"> b64 </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> BASE64Encoder</span><span class="pun">().</span><span class="pln">encode</span><span class="pun">(</span><span class="pln">key</span><span class="pun">.</span><span class="pln">getEncoded</span><span class="pun">());</span><span class="pln">
&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="typ">System</span><span class="pun">.</span><span class="kwd">out</span><span class="pun">.</span><span class="pln">println</span><span class="pun">(</span><span class="str">"-----BEGIN PRIVATE KEY-----"</span><span class="pun">);</span><span class="pln">
&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="typ">System</span><span class="pun">.</span><span class="kwd">out</span><span class="pun">.</span><span class="pln">println</span><span class="pun">(</span><span class="pln">b64</span><span class="pun">);</span><span class="pln">
&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="typ">System</span><span class="pun">.</span><span class="kwd">out</span><span class="pun">.</span><span class="pln">println</span><span class="pun">(</span><span class="str">"-----END PRIVATE KEY-----"</span><span class="pun">);</span><span class="pln">
&nbsp; &nbsp; </span><span class="pun">}</span><span class="pln">
</span><span class="pun">}</span><span class="pln"></span></code></pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/starmacco.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/starmacco.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/starmacco.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/starmacco.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/starmacco.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/starmacco.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/starmacco.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/starmacco.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/starmacco.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/starmacco.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=71&subd=starmacco&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://starmacco.wordpress.com/2009/10/02/gatherting-ssl-private-key-from-jks-keystore-with-java-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0564c62e56a2390b7bf5c17318b2473f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robertstarmach</media:title>
		</media:content>
	</item>
		<item>
		<title>X11 forwarding problems</title>
		<link>http://starmacco.wordpress.com/2009/07/06/x11-forwarding-problems/</link>
		<comments>http://starmacco.wordpress.com/2009/07/06/x11-forwarding-problems/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 11:49:33 +0000</pubDate>
		<dc:creator>robertstarmach</dc:creator>
				<category><![CDATA[komputer]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://starmacco.wordpress.com/?p=67</guid>
		<description><![CDATA[If you setup X11 forwarding in putty. Then after SSH to server and user change via su then error could ocurr.
Xlib: connection to &#8220;localhost:10.0&#8243; refused by server
Xlib: PuTTY X11 proxy: wrong authentication protocol attempted xterm Xt error: Can’t open display: localhost:10.0
To solve, back to oryginal user:
issue:
&#62;xauth list
localhost:10  MIT-MAGIC-COOKIE-1  b31fa494b952390070d409890a314cfb
then on new user:
&#62; xauth add server/unix:10  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=67&subd=starmacco&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you setup X11 forwarding in putty. Then after SSH to server and user change via su then error could ocurr.</p>
<p><em>Xlib: connection to &#8220;localhost:10.0&#8243; refused by server<br />
Xlib: PuTTY X11 proxy: wrong authentication protocol attempted xterm Xt error: Can’t open display: localhost:10.0</em></p>
<p>To solve, back to oryginal user:</p>
<p>issue:</p>
<p><span style="color:#0000ff;"><strong>&gt;xauth list</strong></span><em><br />
localhost:10  MIT-MAGIC-COOKIE-1  b31fa494b952390070d409890a3</em>14cfb</p>
<p>then on new user:</p>
<p>&gt;<span style="color:#0000ff;"><strong> xauth add server/unix:10  MIT-MAGIC-COOKIE-1  b31fa494b952390070d409890a314cfb</strong></span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/starmacco.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/starmacco.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/starmacco.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/starmacco.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/starmacco.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/starmacco.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/starmacco.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/starmacco.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/starmacco.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/starmacco.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=67&subd=starmacco&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://starmacco.wordpress.com/2009/07/06/x11-forwarding-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0564c62e56a2390b7bf5c17318b2473f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robertstarmach</media:title>
		</media:content>
	</item>
		<item>
		<title>nieoczekiwane problemy z rozdzielczością Dell SP2309w i NVIDIA 6600GT</title>
		<link>http://starmacco.wordpress.com/2009/06/28/nieoczekiwane-problemy-z-rozdzielczoscia-dell-sp2309w-i-nvidia-6600gt/</link>
		<comments>http://starmacco.wordpress.com/2009/06/28/nieoczekiwane-problemy-z-rozdzielczoscia-dell-sp2309w-i-nvidia-6600gt/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 23:19:56 +0000</pubDate>
		<dc:creator>robertstarmach</dc:creator>
				<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://starmacco.wordpress.com/2009/06/28/nieoczekiwane-problemy-z-rozdzielczoscia-dell-sp2309w-i-nvidia-6600gt/</guid>
		<description><![CDATA[Na kabalku DVI maksimum jakie można wyciągnać to 1680&#215;1050. Za to na VGA D-SUB rodzielczności do koloru do wyboru.
Natywna rozdzielczość 2048&#215;1152 dla Dell&#8217;a SP2309w&#160; osiąga bez problemu.
Ustawienie większej rozdzielności na DVI skutkuje stworzeniem wirtualnego dużego ekranu którego wydzimy tylko kawalek w oknie 1680&#215;1050. Co jest dziwne bo zodnie ze specyfikacją DVI &#8211; single powinno pójść [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=66&subd=starmacco&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.onet.pl/"></a>Na kabalku DVI maksimum jakie można wyciągnać to 1680&#215;1050. Za to na VGA D-SUB rodzielczności do koloru do wyboru.<br />
Natywna rozdzielczość 2048&#215;1152 dla Dell&#8217;a <a href="http://www.ebuyer.com/product/155584">SP2309w&nbsp; </a>osiąga bez problemu.</p>
<p>Ustawienie większej rozdzielności na DVI skutkuje stworzeniem wirtualnego dużego ekranu którego wydzimy tylko kawalek w oknie 1680&#215;1050. Co jest dziwne bo zodnie ze specyfikacją DVI &#8211; single powinno pójść nawet i 1920&#215;1200 &#8211; wtedy dostajemy obraz w rozdzielności VGA.</p>
<blockquote></blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/starmacco.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/starmacco.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/starmacco.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/starmacco.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/starmacco.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/starmacco.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/starmacco.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/starmacco.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/starmacco.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/starmacco.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=66&subd=starmacco&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://starmacco.wordpress.com/2009/06/28/nieoczekiwane-problemy-z-rozdzielczoscia-dell-sp2309w-i-nvidia-6600gt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0564c62e56a2390b7bf5c17318b2473f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robertstarmach</media:title>
		</media:content>
	</item>
		<item>
		<title>how to extract part of log</title>
		<link>http://starmacco.wordpress.com/2009/05/26/how-to-extract-part-of-log/</link>
		<comments>http://starmacco.wordpress.com/2009/05/26/how-to-extract-part-of-log/#comments</comments>
		<pubDate>Tue, 26 May 2009 11:21:05 +0000</pubDate>
		<dc:creator>robertstarmach</dc:creator>
				<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://starmacco.wordpress.com/2009/05/26/how-to-extract-part-of-log/</guid>
		<description><![CDATA[Simple perl script below gets as arguments
1. Start pattern (could be regexp in single quotes)
2. End pattern (could be regexp in single quotes)
3. File path
It is opening file and prints&#160; everything between Start and End pattern.

&#60;code&#62;
#!/usr/bin/perl
die &#8220;Usage: start_pattern end_pattern file [$#ARGV]&#8221; if $#ARGV&#60;2;
open FI, $ARGV[2] &#124;&#124; die &#8220;Problem with opening file [$ARGV[2]] [$!]\n&#8221;;
$START=$ARGV[0];
$END=$ARGV[1];
$in=0;
foreach (&#60;FI&#62;) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=64&subd=starmacco&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><font color="#3333ff"><font color="#000000">Simple perl script below gets as arguments<br />
1. Start pattern (could be regexp in single quotes)<br />
</font></font><font color="#3333ff"><font color="#000000">2. End pattern (could be regexp in single quotes)<br />
3. File path</p>
<p>It is opening file and prints&nbsp; everything between Start and End pattern.<br />
</font></font><font color="#3333ff"><font color="#000000"><br />
</font>&lt;code&gt;</p>
<p>#!/usr/bin/perl</p>
<p>die &#8220;Usage: start_pattern end_pattern file [$#ARGV]&#8221; if $#ARGV&lt;2;</p>
<p>open FI, $ARGV[2] || die &#8220;Problem with opening file [$ARGV[2]] [$!]\n&#8221;;<br />
$START=$ARGV[0];<br />
$END=$ARGV[1];</p>
<p>$in=0;<br />
foreach (&lt;FI&gt;) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $in=1 if /$START/;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print $_ if $in;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $in=0 if /$END/;</p>
<p>}<br />
close FI;</p>
<p>&lt;/code&gt;</font></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/starmacco.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/starmacco.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/starmacco.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/starmacco.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/starmacco.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/starmacco.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/starmacco.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/starmacco.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/starmacco.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/starmacco.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=64&subd=starmacco&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://starmacco.wordpress.com/2009/05/26/how-to-extract-part-of-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0564c62e56a2390b7bf5c17318b2473f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robertstarmach</media:title>
		</media:content>
	</item>
		<item>
		<title>rozmowy z kolegami</title>
		<link>http://starmacco.wordpress.com/2009/05/19/rozmowy-z-kolegami/</link>
		<comments>http://starmacco.wordpress.com/2009/05/19/rozmowy-z-kolegami/#comments</comments>
		<pubDate>Tue, 19 May 2009 08:58:29 +0000</pubDate>
		<dc:creator>robertstarmach</dc:creator>
				<category><![CDATA[londyn]]></category>

		<guid isPermaLink="false">http://starmacco.wordpress.com/2009/05/19/rozmowy-z-kolegami/</guid>
		<description><![CDATA[kaalai vanakkam&#160; &#8211; dzień dobry po tamilsku. To w zapisie angielskim. Właściwie oznacza to good morning.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=63&subd=starmacco&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>kaalai vanakkam&nbsp; &#8211; dzień dobry po tamilsku. To w zapisie angielskim. Właściwie oznacza to good morning.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/starmacco.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/starmacco.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/starmacco.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/starmacco.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/starmacco.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/starmacco.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/starmacco.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/starmacco.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/starmacco.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/starmacco.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=63&subd=starmacco&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://starmacco.wordpress.com/2009/05/19/rozmowy-z-kolegami/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0564c62e56a2390b7bf5c17318b2473f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robertstarmach</media:title>
		</media:content>
	</item>
		<item>
		<title>CURL and no Cache test throgh proxy</title>
		<link>http://starmacco.wordpress.com/2009/05/07/curl-and-no-cache-test-throgh-proxy/</link>
		<comments>http://starmacco.wordpress.com/2009/05/07/curl-and-no-cache-test-throgh-proxy/#comments</comments>
		<pubDate>Thu, 07 May 2009 09:55:01 +0000</pubDate>
		<dc:creator>robertstarmach</dc:creator>
				<category><![CDATA[komputer]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://starmacco.wordpress.com/2009/05/07/curl-and-no-cache-test-throgh-proxy/</guid>
		<description><![CDATA[&#160;
i=0; while true; do let i=$i+1; curl&#160; -H &#8220;Pragma: no-cache&#8221;&#160; -H &#8220;Cache-Control: no-cache&#8221; -I -x proxy_host:proxy_port http://site_to_be_tested/index.html; echo&#160; $i; sleep 1; done
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=62&subd=starmacco&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&nbsp;</p>
<p>i=0; while true; do let i=$i+1; curl&nbsp; -H &#8220;Pragma: no-cache&#8221;&nbsp; -H &#8220;Cache-Control: no-cache&#8221; -I -x proxy_host:proxy_port http://site_to_be_tested/index.html; echo&nbsp; $i; sleep 1; done</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/starmacco.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/starmacco.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/starmacco.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/starmacco.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/starmacco.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/starmacco.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/starmacco.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/starmacco.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/starmacco.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/starmacco.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=62&subd=starmacco&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://starmacco.wordpress.com/2009/05/07/curl-and-no-cache-test-throgh-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0564c62e56a2390b7bf5c17318b2473f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robertstarmach</media:title>
		</media:content>
	</item>
		<item>
		<title>copying files unde Unix with perms and ACLs (cpio)</title>
		<link>http://starmacco.wordpress.com/2009/04/23/copying-files-unde-unix-with-perms-and-acls-cpio/</link>
		<comments>http://starmacco.wordpress.com/2009/04/23/copying-files-unde-unix-with-perms-and-acls-cpio/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 12:03:55 +0000</pubDate>
		<dc:creator>robertstarmach</dc:creator>
				<category><![CDATA[komunikacja]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://starmacco.wordpress.com/2009/04/23/copying-files-unde-unix-with-perms-and-acls-cpio/</guid>
		<description><![CDATA[The easiest way is to use cpio command as tar does not copy ACL from filesystem.
&#60;code&#62;
mkdir /desitnation/folder
cd /source/folder/path
find . -depth -print &#124; cpio -dumpPv&#160; /desitnation/folder


&#60;/code&#62;
&#8216;-P&#8217; &#8211; switch is important &#8211; copies ACLs
In other case you have to use hand made script which uses getfacl and setfacl commands.
For permissions processing best would be perl which use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=61&subd=starmacco&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The easiest way is to use cpio command as tar does not copy ACL from filesystem.<br />
&lt;code&gt;</p>
<blockquote><div align="left"><font color="#000099">mkdir /desitnation/folder<br />
cd /source/folder/path<br />
find . -depth -print | cpio -dumpPv&nbsp; /desitnation/folder</font>
</div>
</blockquote>
<p>&lt;/code&gt;</p>
<p>&#8216;-P&#8217; &#8211; switch is important &#8211; copies ACLs</p>
<p>In other case you have to use hand made script which uses getfacl and setfacl commands.<br />
For permissions processing best would be perl which use &#8217;stat&#8217; &#8211; for files properties and chmod/chown commands.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/starmacco.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/starmacco.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/starmacco.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/starmacco.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/starmacco.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/starmacco.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/starmacco.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/starmacco.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/starmacco.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/starmacco.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=starmacco.wordpress.com&blog=1096750&post=61&subd=starmacco&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://starmacco.wordpress.com/2009/04/23/copying-files-unde-unix-with-perms-and-acls-cpio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0564c62e56a2390b7bf5c17318b2473f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robertstarmach</media:title>
		</media:content>
	</item>
	</channel>
</rss>