<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>:: HawkEYE Expression ::</title>
	
	<link>http://blog.namran.net</link>
	<description>R35p3c7 7h3 !n7311!93n7,h31p wh0 c4n’7 4ff02d….        [blog.namran.net]</description>
	<lastBuildDate>Fri, 10 Feb 2012 16:36:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/HawkeyeExpression" /><feedburner:info uri="hawkeyeexpression" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>3.8</geo:lat><geo:long>101.42</geo:long><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><feedburner:emailServiceId>HawkeyeExpression</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Playing with PIC18F4550 : write and compile C code , upload HEX to it</title>
		<link>http://feedproxy.google.com/~r/HawkeyeExpression/~3/AjThp6UCz7M/</link>
		<comments>http://blog.namran.net/2012/02/10/playing-with-pic18f4550-write-and-compile-c-code-upload-hex-to-it/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 15:48:11 +0000</pubDate>
		<dc:creator>namran</dc:creator>
				<category><![CDATA[Brain]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[microcontroller]]></category>
		<category><![CDATA[PIC]]></category>

		<guid isPermaLink="false">http://blog.namran.net/?p=4168</guid>
		<description><![CDATA[Well, I&#8217;d love to discover new thing and try something new just to learn how it work. That&#8217;s one of the thing that I wish will remain even after growing up and being old man . So, I&#8217;d ordered some stuff from http://www.cytron.com.my at few months back. At that time, it mainly because I need [...]

<div class="post-fixed">
Related posts:<ol><li><a href='http://blog.namran.net/2011/07/30/kite-playing-pull-and-loose-the-wire/' rel='bookmark' title='Permanent Link: Kite Playing : pull and loose the wire'>Kite Playing : pull and loose the wire</a></li>
<li><a href='http://blog.namran.net/2009/11/17/how-to-write-a-post-within-3-minutes-self-test/' rel='bookmark' title='Permanent Link: How to write a post within 3 minutes ~ self-test header'>How to write a post within 3 minutes ~ self-test header</a></li>
<li><a href='http://blog.namran.net/2009/06/17/how-to-capture-video-in-vmware-and-upload-it-into-youtube/' rel='bookmark' title='Permanent Link: How to capture video in VMWare and upload it into youtube'>How to capture video in VMWare and upload it into youtube</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;d love to discover new thing and try something new just to learn how it work.<br />
That&#8217;s one of the thing that I wish will remain even after growing up and being old man . <img src='http://blog.namran.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>So, I&#8217;d ordered some stuff from <a href="http://www.cytron.com.my ">http://www.cytron.com.my </a> at few months back.<br />
At that time, it mainly because I need its &#8220;Programmer&#8221; connector to upgrade the firmware into one of the<br />
chip we used in my office&#8217;s research / test component.<br />
Instead of just ordering for the cable, I order the whole start-up <a href="http://www.cytron.com.my/viewProduct.php?pcode=SKFYP-02&#038;name=Final%20Year%20Project%20Starter%20Pack%2002">kit</a>.<br />
Or more precisely , I bought the “Final Year Project Starter Pack 02” from cytron.com.my.<br />
(oh..btw, I didn&#8217;t claim any single cent from the office for this one.. therefore,the whole set are rightfully mine. <img src='http://blog.namran.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ) </p>
<p>After the connector is no longer needed, as it was just to upgrade the firmware on one of our RnD board.</p>
<p>After almost a year,I opened up the box and start looking at it.<br />
Then I thought why not just open the box and write something like.<br />
&#8220;Writing C code,compile to HEX and getting it into a micro-controller chip with PIC18F4550&#8243;&#8216;.<br />
I spend first few hour to get everything hook up correctly and successfully wrote something on it. <img src='http://blog.namran.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This starter pack includes the PIC microcontoller, LED as output, push button as input, multi meter for troubleshooting and verification, programmer and bread board. A comprehensive set to start for me.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Package Include:
&nbsp;
    SK40C x 1
    PIC18F4550 x 1
    UIC00B Programmerx 1
    AC-DC Adaptor TMC-500PM x 1
    Digital Multimeter x 1
    Bread Board x 1
    LED 3mm x 10
    Push Button x 5
    Jumper Wire x 5m
    Resistor 330R x 10
    Resistor 1K x 10
    Resistor 10K x 10</pre></div></div>

<p>So, I connected everything starting with .<br />
<span id="more-4168"></span><br />
Putting PIC18F4550 IC(microcontroller chip) into SK40C’s IC slot.<br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/SK40C-with-PIC18F4550.jpg.jpg"><img src="http://blog.namran.net/wp-content/uploads/2012/02/SK40C-with-PIC18F4550.jpg-300x180.jpg" alt="" title="SK40C-with-PIC18F4550.jpg" width="300" height="180" class="alignnone size-medium wp-image-4190" /></a></p>
<p>and. this the programmer interface ..&#8221;UIC00B.&#8221;</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/UIC00B..jpg"><img src="http://blog.namran.net/wp-content/uploads/2012/02/UIC00B.-300x189.jpg" alt="" title="UIC00B." width="300" height="189" class="alignnone size-medium wp-image-4191" /></a></p>
<p>Then, UIC00B Programmer interface to USB port on the PC.<br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/before-connect-rainbow.jpg"><img src="http://blog.namran.net/wp-content/uploads/2012/02/before-connect-rainbow-300x196.jpg" alt="" title="before-connect-rainbow" width="300" height="196" class="alignnone size-medium wp-image-4192" /></a></p>
<p>Then connect SK40C  to UIC00B Programmer interface . (rainbow cable)<br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/with-rainbow-connected.jpg"><img src="http://blog.namran.net/wp-content/uploads/2012/02/with-rainbow-connected-300x151.jpg" alt="" title="with-rainbow-connected" width="300" height="151" class="alignnone size-medium wp-image-4193" /></a></p>
<p>Then, ready to go.. <img src='http://blog.namran.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>There is avalaible tutorial video how to connect all this.</p>
<p><iframe width="500" height="375" src="http://www.youtube.com/embed/l4AZ5r4Wvc0?fs=1&#038;feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>Aha. before that, I just need to install some software on my computer first.</p>
<p>The list are:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">1.MPLab IDE. (v8.46)
2.PICKit 2 (v2.61)
3. MPLAB C for PIC18 MCUs.</pre></div></div>

<p>Some of the software are provided inside the CD that come together with the Packages.<br />
except for the Hi-Tech C compiler which I failed to use its Lite version.<br />
So, I downloaded the &#8220;MPLAB C for PIC18&#8243; lite version from microchip website.<br />
Which run beautifully without problem..</p>
<p>Here , how I start.</p>
<p>MPLAB IDE interface is as follows.</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/mplab-ide.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/mplab-ide-300x161.png" alt="" title="mplab-ide" width="300" height="161" class="alignnone size-medium wp-image-4169" /></a></p>
<p>Start with new project wizard.</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/project_wizard_1.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/project_wizard_1-300x233.png" alt="" title="project_wizard_1" width="300" height="233" class="alignnone size-medium wp-image-4170" /></a></p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/project_wizard_2.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/project_wizard_2-300x233.png" alt="" title="project_wizard_2" width="300" height="233" class="alignnone size-medium wp-image-4171" /></a></p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/project_wizard_3.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/project_wizard_3-300x236.png" alt="" title="project_wizard_3" width="300" height="236" class="alignnone size-medium wp-image-4172" /></a></p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/project_wizard_4.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/project_wizard_4-300x233.png" alt="" title="project_wizard_4" width="300" height="233" class="alignnone size-medium wp-image-4173" /></a></p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/project_wizard_5.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/project_wizard_5-300x233.png" alt="" title="project_wizard_5" width="300" height="233" class="alignnone size-medium wp-image-4174" /></a></p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/project_wizard_6.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/project_wizard_6-300x233.png" alt="" title="project_wizard_6" width="300" height="233" class="alignnone size-medium wp-image-4175" /></a></p>
<p>then it would become something like this.<br />
at which I can add files and more thing into it.<br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/main-screen.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/main-screen-300x153.png" alt="" title="main-screen" width="300" height="153" class="alignnone size-medium wp-image-4176" /></a></p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/add-files.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/add-files-300x207.png" alt="" title="add-files" width="300" height="207" class="alignnone size-medium wp-image-4177" /></a></p>
<p>First thing I add is the header for this CHIP , sitting somewhere at &#8220;C:Program Files (x86)Microchipmplabc18v3.40h>&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="msdos" style="font-family:monospace;">19/02/2011  04:37 AM            54,114 p18lf46j11.h
19/02/2011  04:37 AM            72,158 p18lf46j13.h
01/06/2011  04:23 AM            64,045 p18lf46j50.h
19/02/2011  04:37 AM            79,095 p18lf46j53.h
19/02/2011  04:37 AM            68,756 p18lf46k22.h
19/02/2011  04:37 AM           159,899 p18lf46k80.h
19/02/2011  04:37 AM            72,158 p18lf47j13.h
19/02/2011  04:37 AM            79,095 p18lf47j53.h
19/02/2011  04:37 AM           163,094 p18lf65k80.h
19/02/2011  04:37 AM           163,094 p18lf66k80.h
09/06/2011  05:36 PM           315,200 pconfig.h
18/06/2009  06:21 PM            22,649 pcpwm.h
19/02/2011  04:37 AM            31,340 pmcv20usb.h
04/06/2010  12:43 PM            35,211 pmp.h
18/06/2009  06:21 PM             7,847 portb.h
24/12/2009  12:03 PM            17,334 pps.h
19/12/2008  04:33 PM             2,166 ProMPT.h
10/08/2010  08:57 PM            29,949 pwm.h
19/12/2008  04:33 PM               940 reset.h
04/06/2009  02:21 PM            20,747 rtcc.h
10/12/2003  06:54 AM               670 setjmp.h
19/07/2009  07:21 AM            19,926 spi.h
05/08/2004  02:46 AM               302 stdarg.h
05/08/2004  02:52 AM             1,883 stddef.h
02/10/2004  02:48 AM             1,024 stdio.h
10/12/2003  06:54 AM             6,331 stdlib.h
10/12/2003  06:54 AM            35,401 string.h
18/06/2009  06:21 PM             5,860 sw_i2c.h
18/06/2009  06:21 PM             4,416 sw_spi.h
18/06/2009  06:21 PM             2,903 sw_uart.h
22/12/2010  12:08 PM            52,966 timers.h
18/06/2009  06:21 PM            19,970 usart.h
05/05/2009  01:25 PM             4,165 xlcd.h
             321 File(s)     17,139,562 bytes
               2 Dir(s)  188,943,335,424 bytes free
&nbsp;
C:\Program Files (x86)\Microchip\mplabc18\v3.40\h&gt;</pre></div></div>

<p>Adding it so that I didn&#8217;t have to re-define the whole port for the PIC18F4550 manually . <img src='http://blog.namran.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
To use .. I just define to include those file header into my c code.</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#include &lt;p18F4550.h&gt;</span>
<span style="color: #339933;">#include &lt;delays.h&gt;</span>
&nbsp;
<span style="color: #339933;">#pragma config FOSC = INTOSCIO_EC //Internal oscillator, port function on RA6, EC used by USB</span>
<span style="color: #339933;">#pragma config WDT = OFF //Disable watchdog timer</span>
&nbsp;
&nbsp;
<span style="color: #339933;">#define    LED1    LATBbits.LATB6</span>
<span style="color: #339933;">#define    LED2    LATBbits.LATB7</span>
<span style="color: #993333;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #993333;">unsigned</span> <span style="color: #993333;">char</span> i<span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">//init();   		 // initialise PIC</span>
    TRISBbits.<span style="color: #202020;">TRISB0</span><span style="color: #339933;">=</span><span style="color: #0000dd;">1</span><span style="color: #339933;">;</span>   	 <span style="color: #666666; font-style: italic;">//configure PORTB I/O direction as output</span>
    TRISBbits.<span style="color: #202020;">TRISB1</span><span style="color: #339933;">=</span><span style="color: #0000dd;">1</span><span style="color: #339933;">;</span>   	 <span style="color: #666666; font-style: italic;">//configure PORTB I/O direction as output</span>
    TRISBbits.<span style="color: #202020;">TRISB6</span><span style="color: #339933;">=</span><span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>   	 <span style="color: #666666; font-style: italic;">//configure PORTB I/O direction as input in case want to use SWitch1</span>
    TRISBbits.<span style="color: #202020;">TRISB7</span><span style="color: #339933;">=</span><span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>   	 <span style="color: #666666; font-style: italic;">//configure PORTB I/O direction as input in case want to use SWitch2</span>
&nbsp;
&nbsp;
	 LED1 <span style="color: #339933;">=</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//Set LED Pin</span>
    LED2 <span style="color: #339933;">=</span> <span style="color: #0000dd;">1</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//Set LED Pin</span>
&nbsp;
    <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// on both</span>
    Delay10KTCYx<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">25</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	<span style="color: #666666; font-style: italic;">// delay 200ms</span>
    LED1 <span style="color: #339933;">^=</span><span style="color: #0000dd;">1</span><span style="color: #339933;">;</span>
    LED2 <span style="color: #339933;">^=</span><span style="color: #0000dd;">1</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/real-c-code.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/real-c-code-300x213.png" alt="" title="real-c-code" width="300" height="213" class="alignnone size-medium wp-image-4179" /></a></p>
<p>some setting at the &#8220;configuration bit.&#8221;</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/configuration-bit.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/configuration-bit-300x212.png" alt="" title="configuration-bit" width="300" height="212" class="alignnone size-medium wp-image-4182" /></a></p>
<p>Disabling the &#8220;watchdog&#8221; and &#8220;low voltage &#8221;<br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/brown-detect-disabled.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/brown-detect-disabled-300x165.png" alt="" title="brown-detect-disabled" width="300" height="165" class="alignnone size-medium wp-image-4183" /></a></p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/low-voltage-disabled.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/low-voltage-disabled-300x213.png" alt="" title="low-voltage-disabled" width="300" height="213" class="alignnone size-medium wp-image-4184" /></a><br />
then try to build it out. ;P<br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/success-build.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/success-build-300x213.png" alt="" title="success-build" width="300" height="213" class="alignnone size-medium wp-image-4180" /></a></p>
<p>then time to connect and upload it to the real chip.<br />
this can be done in two different way..</p>
<p>One .. get it to generate the HEX code, and manually use PicKit 2 to write into the chip.<br />
however.. to save the configuration bit.. from the MPLAB IDE.. use the File -> Export .<br />
then the HEx will be generated.</p>
<p>From there.. just run PIC Kit 2 and .. connect the PIC programmer cable, rainbow cable, power on everyting,<br />
at PIC Kit 2-> Tools -> check communication , it shall report as connected.<br />
Then.. just File -> Import Hex, then WRITE !.</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/programming-using-pic-kit2.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/programming-using-pic-kit2-246x300.png" alt="" title="programming-using-pic-kit2" width="246" height="300" class="alignnone size-medium wp-image-4181" /></a></p>
<p>Other easier way , is to use MPLAB IDE interface .. Programmer -> PIC Kit 2.<br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/select-programmer-pic-kit2.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/select-programmer-pic-kit2-300x212.png" alt="" title="select-programmer-pic-kit2" width="300" height="212" class="alignnone size-medium wp-image-4186" /></a></p>
<p>then .. set the programmer setting.</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/programmer-settings.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/programmer-settings-300x212.png" alt="" title="programmer-settings" width="300" height="212" class="alignnone size-medium wp-image-4187" /></a></p>
<p>then.. just clean .. and rebuild all.<br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/clean-and-build-all..png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/clean-and-build-all.-300x211.png" alt="" title="clean-and-build-all." width="300" height="211" class="alignnone size-medium wp-image-4188" /></a></p>
<p>.. with the programmer connected. it would spit something like this.<br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/build-all-with-programmer-connected.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/build-all-with-programmer-connected-300x213.png" alt="" title="build-all-with-programmer-connected" width="300" height="213" class="alignnone size-medium wp-image-4189" /></a></p>
<p>After that, turn the SK40C off..<br />
disconnect the rainbow cable from SK40C to USB-programmer.</p>
<p>power on the SK40C alone.. then it would run the new HEX as expected. <img src='http://blog.namran.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>result would be something like..<br />
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/adGIRRh03vU"></param><embed src="http://www.youtube.com/v/adGIRRh03vU" type="application/x-shockwave-flash" width="425" height="350"></embed></object><br />
<a href="https://plus.google.com/u/0/113037984437874858904/posts/4o9yWxKFhPR">https://plus.google.com/u/0/113037984437874858904/posts/4o9yWxKFhPR</a></p>
<p>More details at :<a href=" http://tutorial.cytron.com.my/2011/08/05/sk40c-tutorial/"> http://tutorial.cytron.com.my/2011/08/05/sk40c-tutorial/</a></p>
<p>p/s : ..for the next thing,maybe is to get the UART connected to a GSM modem, connect the relay to one of the DI, write C code to receive and decode the received SMS.. and act accordingly to turn on/off the relay.. and maybe add the LCD to show status.. relay to be connected to one of electrical appliance. or may be a series of electrical appliance..<br />
then .. maybe get it integrated to a web interface just to encode the SMS to be sent to this device.</p>
<p>Hmm.. only until recently I realize my understanding of Digital Input (DI) is actually reversed of what I thought is Analog Input. . haha. </p>
<div class="fblike_button" style="margin: 10px 0;"><fb:like font="lucida grande" href="http%3A%2F%2Fblog.namran.net%2F2012%2F02%2F10%2Fplaying-with-pic18f4550-write-and-compile-c-code-upload-hex-to-it%2F" show_faces="false" width="450"></fb:like></div>



<div class="post-fixed"><p>Related posts:<ol><li><a href='http://blog.namran.net/2011/07/30/kite-playing-pull-and-loose-the-wire/' rel='bookmark' title='Permanent Link: Kite Playing : pull and loose the wire'>Kite Playing : pull and loose the wire</a></li>
<li><a href='http://blog.namran.net/2009/11/17/how-to-write-a-post-within-3-minutes-self-test/' rel='bookmark' title='Permanent Link: How to write a post within 3 minutes ~ self-test header'>How to write a post within 3 minutes ~ self-test header</a></li>
<li><a href='http://blog.namran.net/2009/06/17/how-to-capture-video-in-vmware-and-upload-it-into-youtube/' rel='bookmark' title='Permanent Link: How to capture video in VMWare and upload it into youtube'>How to capture video in VMWare and upload it into youtube</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/wewu5NmqLkGk22E7L4Z1AeUSi8M/0/da"><img src="http://feedads.g.doubleclick.net/~a/wewu5NmqLkGk22E7L4Z1AeUSi8M/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/wewu5NmqLkGk22E7L4Z1AeUSi8M/1/da"><img src="http://feedads.g.doubleclick.net/~a/wewu5NmqLkGk22E7L4Z1AeUSi8M/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/HawkeyeExpression/~4/AjThp6UCz7M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.namran.net/2012/02/10/playing-with-pic18f4550-write-and-compile-c-code-upload-hex-to-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.namran.net/2012/02/10/playing-with-pic18f4550-write-and-compile-c-code-upload-hex-to-it/</feedburner:origLink></item>
		<item>
		<title>Implementing SSL into webserver</title>
		<link>http://feedproxy.google.com/~r/HawkeyeExpression/~3/Ktp8u-vpKzQ/</link>
		<comments>http://blog.namran.net/2012/02/08/implementing-ssl-into-webserver/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 04:39:41 +0000</pubDate>
		<dc:creator>namran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://blog.namran.net/?p=4154</guid>
		<description><![CDATA[Last year, I moved over my DNS server to new provider. The previous one just being taken over by new management. So, I move all the record to new Domain hosting, with some transfer fee its come with first year offer. And with that stuff also come the SSL certificates to be activated for free. [...]

<div class="post-fixed">
Related posts:<ol><li><a href='http://blog.namran.net/2009/05/15/how-to-use-deflate-in-apache/' rel='bookmark' title='Permanent Link: How to use deflate in apache config to save bandwidth on webserver'>How to use deflate in apache config to save bandwidth on webserver</a></li>
<li><a href='http://blog.namran.net/2010/02/08/installing-and-configuring-openvpn-server-in-centos-5-4/' rel='bookmark' title='Permanent Link: Installing and configuring OpenVPN server in CentOS 5.4'>Installing and configuring OpenVPN server in CentOS 5.4</a></li>
<li><a href='http://blog.namran.net/2009/03/11/blocking-access-to-certain-website-using-route/' rel='bookmark' title='Permanent Link: Blocking access to certain website using route'>Blocking access to certain website using route</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Last year, I moved over my DNS server to new provider.<br />
The previous one just being taken over by new management. <img src='http://blog.namran.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/SSL-promo.jpg"><img src="http://blog.namran.net/wp-content/uploads/2012/02/SSL-promo-300x206.jpg" alt="" title="SSL-promo" width="300" height="206" class="alignnone size-medium wp-image-4155" /></a><br />
So, I move all the record to new Domain hosting,<br />
with some transfer fee its come with first year offer.<br />
And with that stuff also come the SSL certificates to be activated for free.<br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/buy-ssl.jpg"><img src="http://blog.namran.net/wp-content/uploads/2012/02/buy-ssl-300x198.jpg" alt="" title="buy-ssl" width="300" height="198" class="alignnone size-medium wp-image-4158" /></a><br />
Not one, but two ..<br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/list-ssl.png"><img src="http://blog.namran.net/wp-content/uploads/2012/02/list-ssl-300x122.png" alt="" title="list-ssl" width="300" height="122" class="alignnone size-medium wp-image-4156" /></a><br />
So, I just activated one for my personal use at ssl.namran.net<br />
From the hosting interface I just activated the cert and wait for their email.<br />
After a while I received both of the certificates.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Your PositiveSSL Certificate for ssl.namran.net is attached!
&nbsp;
&nbsp;
Dear namran,
&nbsp;
Thank you for placing your order. We are pleased to announce that your PositiveSSL Certificate for ssl.namran.net has been issued.
&nbsp;
To help reduce domain name mismatch warnings, we have also included the domain name www.ssl.namran.net in your certificate.
&nbsp;
We strongly recommend that you click here for instructions to ensure that your certificate is installed and your webserver is configured correctly.
&nbsp;
Attached to this email you should find a .zip file containing:
&nbsp;
    Your PositiveSSL Certificate - ssl_namran_net.crt
    Your Apache &quot;bundle&quot; file - ssl_namran_net.ca-bundle
&nbsp;
You can also find your PositiveSSL Certificate for ssl.namran.net in text format at the bottom of this email.
&nbsp;
Should you have any questions or issues you would like to discuss, please do not hesitate to contact us.
&nbsp;
&nbsp;
Kind Regards,
&nbsp;
&nbsp;
Comodo Security Services on behalf of NameCheap.com</pre></div></div>

<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/ssl-email.jpg"><img src="http://blog.namran.net/wp-content/uploads/2012/02/ssl-email-300x155.jpg" alt="" title="ssl-email" width="300" height="155" class="alignnone size-medium wp-image-4157" /></a><br />
to start using this cert properly ..<br />
I download both file and place into my webserver at the following place.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #666666; font-style: italic;">#SSLCertificateFile </span>
SSLCertificateFile <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>pki<span style="color: #000000; font-weight: bold;">/</span>tls<span style="color: #000000; font-weight: bold;">/</span>certs<span style="color: #000000; font-weight: bold;">/</span>ssl_namran_net.crt
&nbsp;
<span style="color: #666666; font-style: italic;">#   Certificate Authority (CA):</span>
<span style="color: #666666; font-style: italic;">#   Set the CA certificate verification path where to find CA</span>
<span style="color: #666666; font-style: italic;">#   certificates for client authentication or alternatively one</span>
<span style="color: #666666; font-style: italic;">#   huge file containing all of them (file must be PEM encoded)</span>
<span style="color: #666666; font-style: italic;">#SSLCACertificateFile </span>
SSLCACertificateFile <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>pki<span style="color: #000000; font-weight: bold;">/</span>tls<span style="color: #000000; font-weight: bold;">/</span>certs<span style="color: #000000; font-weight: bold;">/</span>ssl_namran_net.ca-bundle</pre></div></div>

<p>Then just need to edit the ssl.conf or under conf.d/ssl.conf</p>
<p>with something like the following config.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># This is the Apache server configuration file providing SSL support.</span>
<span style="color: #666666; font-style: italic;"># It contains the configuration directives to instruct the server how to</span>
<span style="color: #666666; font-style: italic;"># serve pages over an https connection. For detailing information about these</span>
<span style="color: #666666; font-style: italic;"># directives see &lt;URL:http://httpd.apache.org/docs/2.2/mod/mod_ssl.html&gt;</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Do NOT simply read the instructions in here without understanding</span>
<span style="color: #666666; font-style: italic;"># what they do.  They're here only as hints or reminders.  If you are unsure</span>
<span style="color: #666666; font-style: italic;"># consult the online docs. You have been warned.</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
LoadModule ssl_module modules<span style="color: #000000; font-weight: bold;">/</span>mod_ssl.so
&nbsp;
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># When we also provide SSL we have to listen to the</span>
<span style="color: #666666; font-style: italic;"># the HTTPS port in addition.</span>
<span style="color: #666666; font-style: italic;">#</span>
Listen <span style="color: #000000;">443</span></pre></div></div>

<p>For VirtualHost part, edit as follows..</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">##</span>
<span style="color: #666666; font-style: italic;">## SSL Virtual Host Context</span>
<span style="color: #666666; font-style: italic;">##</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>VirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">443</span><span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># General setup for the virtual host, inherited from global configuration</span>
DocumentRoot <span style="color: #ff0000;">&quot;/home/namran/src/ssl_namran_net/docroot&quot;</span>
ServerName ssl.namran.net:<span style="color: #000000;">443</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># the following to redirect to use HTTPS if user are not using it yet.</span>
RewriteEngine On
RewriteCond <span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>HTTPS<span style="color: #7a0874; font-weight: bold;">&#125;</span> off
RewriteRule <span style="color: #7a0874; font-weight: bold;">&#40;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> https:<span style="color: #000000; font-weight: bold;">//%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>HTTP_HOST<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>REQUEST_URI<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Use separate log files for the SSL virtual host; note that LogLevel</span>
<span style="color: #666666; font-style: italic;"># is not inherited from httpd.conf.</span>
ErrorLog logs<span style="color: #000000; font-weight: bold;">/</span>ssl_namran_net_error_log
TransferLog logs<span style="color: #000000; font-weight: bold;">/</span>ssl_namran_net_access_log
LogLevel warn
&nbsp;
<span style="color: #666666; font-style: italic;">#   SSL Engine Switch:</span>
<span style="color: #666666; font-style: italic;">#   Enable/Disable SSL for this virtual host.</span>
SSLEngine on
&nbsp;
<span style="color: #666666; font-style: italic;">#   SSL Protocol support:</span>
<span style="color: #666666; font-style: italic;"># List the enable protocol levels with which clients will be able to</span>
<span style="color: #666666; font-style: italic;"># connect.  Disable SSLv2 access by default:</span>
SSLProtocol all <span style="color: #660033;">-SSLv2</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#   SSL Cipher Suite:</span>
<span style="color: #666666; font-style: italic;"># List the ciphers that the client is permitted to negotiate.</span>
<span style="color: #666666; font-style: italic;"># See the mod_ssl documentation for a complete list.</span>
SSLCipherSuite ALL:<span style="color: #000000; font-weight: bold;">!</span>ADH:<span style="color: #000000; font-weight: bold;">!</span>EXPORT:<span style="color: #000000; font-weight: bold;">!</span>SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
&nbsp;
<span style="color: #666666; font-style: italic;">#   Server Certificate:</span>
<span style="color: #666666; font-style: italic;"># Point SSLCertificateFile at a PEM encoded certificate.  If</span>
<span style="color: #666666; font-style: italic;"># the certificate is encrypted, then you will be prompted for a</span>
<span style="color: #666666; font-style: italic;"># Point SSLCertificateFile at a PEM encoded certificate.  If</span>
<span style="color: #666666; font-style: italic;"># the certificate is encrypted, then you will be prompted for a</span>
<span style="color: #666666; font-style: italic;"># pass phrase.  Note that a kill -HUP will prompt again.  A new</span>
<span style="color: #666666; font-style: italic;"># certificate can be generated using the genkey(1) command.</span>
SSLCertificateFile <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>pki<span style="color: #000000; font-weight: bold;">/</span>tls<span style="color: #000000; font-weight: bold;">/</span>certs<span style="color: #000000; font-weight: bold;">/</span>ssl_namran_net.crt
&nbsp;
<span style="color: #666666; font-style: italic;">#   Server Private Key:</span>
<span style="color: #666666; font-style: italic;">#   If the key is not combined with the certificate, use this</span>
<span style="color: #666666; font-style: italic;">#   directive to point at the key file.  Keep in mind that if</span>
<span style="color: #666666; font-style: italic;">#   you've both a RSA and a DSA private key you can configure</span>
<span style="color: #666666; font-style: italic;">#   both in parallel (to also allow the use of DSA ciphers, etc.)</span>
<span style="color: #666666; font-style: italic;">#SSLCertificateKeyFile /etc/pki/tls/private/myserver.key</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#   Server Certificate Chain:</span>
<span style="color: #666666; font-style: italic;">#   Point SSLCertificateChainFile at a file containing the</span>
<span style="color: #666666; font-style: italic;">#   concatenation of PEM encoded CA certificates which form the</span>
<span style="color: #666666; font-style: italic;">#   certificate chain for the server certificate. Alternatively</span>
<span style="color: #666666; font-style: italic;">#   the referenced file can be the same as SSLCertificateFile</span>
<span style="color: #666666; font-style: italic;">#   when the CA certificates are directly appended to the server</span>
<span style="color: #666666; font-style: italic;">#   certificate for convinience.</span>
<span style="color: #666666; font-style: italic;">#SSLCertificateChainFile /etc/pki/tls/certs/server-chain.crt</span>
SSLCertificateChainFile <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>pki<span style="color: #000000; font-weight: bold;">/</span>tls<span style="color: #000000; font-weight: bold;">/</span>certs<span style="color: #000000; font-weight: bold;">/</span>ssl_namran_net.ca-bundle
&nbsp;
<span style="color: #666666; font-style: italic;">#   Certificate Authority (CA):</span>
<span style="color: #666666; font-style: italic;">#   Set the CA certificate verification path where to find CA</span>
<span style="color: #666666; font-style: italic;">#   certificates for client authentication or alternatively one</span>
<span style="color: #666666; font-style: italic;">#   huge file containing all of them (file must be PEM encoded)</span>
<span style="color: #666666; font-style: italic;">#SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt</span>
<span style="color: #666666; font-style: italic;">#SSLCACertificateFile /etc/pki/tls/certs/ssl_namran_net.ca-bundle</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#   Client Authentication (Type):</span>
<span style="color: #666666; font-style: italic;">#   Client certificate verification type and depth.  Types are</span>
<span style="color: #666666; font-style: italic;">#   none, optional, require and optional_no_ca.  Depth is a</span>
<span style="color: #666666; font-style: italic;">#   number which specifies how deeply to verify the certificate</span>
<span style="color: #666666; font-style: italic;">#   issuer chain before deciding the certificate is not valid.</span>
<span style="color: #666666; font-style: italic;">#SSLVerifyClient require</span>
<span style="color: #666666; font-style: italic;">#SSLVerifyDepth  10</span>
<span style="color: #666666; font-style: italic;">#SSLVerifyDepth  10</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#   Access Control:</span>
<span style="color: #666666; font-style: italic;">#   With SSLRequire you can do per-directory access control based</span>
<span style="color: #666666; font-style: italic;">#   on arbitrary complex boolean expressions containing server</span>
<span style="color: #666666; font-style: italic;">#   variable checks and other lookup directives.  The syntax is a</span>
<span style="color: #666666; font-style: italic;">#   mixture between C and Perl.  See the mod_ssl documentation</span>
<span style="color: #666666; font-style: italic;">#   for more details. </span>
<span style="color: #666666; font-style: italic;">#&lt;Location /&gt; </span>
<span style="color: #666666; font-style: italic;">#SSLRequire (    %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \</span>
<span style="color: #666666; font-style: italic;">#            and %{SSL_CLIENT_S_DN_O} eq &quot;Snake Oil, Ltd.&quot; \</span>
<span style="color: #666666; font-style: italic;">#            and %{SSL_CLIENT_S_DN_OU} in {&quot;Staff&quot;, &quot;CA&quot;, &quot;Dev&quot;} \</span>
<span style="color: #666666; font-style: italic;">#            and %{TIME_WDAY} &gt;= 1 and %{TIME_WDAY} &lt;= 5 \</span>
<span style="color: #666666; font-style: italic;">#            and %{TIME_HOUR} &gt;= 8 and %{TIME_HOUR} &lt;= 20       ) \</span>
<span style="color: #666666; font-style: italic;">#           or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/</span>
<span style="color: #666666; font-style: italic;">#&lt;/Location&gt;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#   SSL Engine Options: </span>
<span style="color: #666666; font-style: italic;">#   Set various options for the SSL engine.</span>
<span style="color: #666666; font-style: italic;">#   o FakeBasicAuth:</span>
<span style="color: #666666; font-style: italic;">#     Translate the client X.509 into a Basic Authorisation.  This means that</span>
<span style="color: #666666; font-style: italic;">#     the standard Auth/DBMAuth methods can be used for access control.  The</span>
<span style="color: #666666; font-style: italic;">#     user name is the `one line' version of the client's X.509 certificate.</span>
<span style="color: #666666; font-style: italic;">#     Note that no password is obtained from the user. Every entry in the user</span>
<span style="color: #666666; font-style: italic;">#     file needs this password: `xxj31ZMTZzkVA'.</span>
<span style="color: #666666; font-style: italic;">#   o ExportCertData:</span>
<span style="color: #666666; font-style: italic;">#     This exports two additional environment variables: SSL_CLIENT_CERT and</span>
<span style="color: #666666; font-style: italic;">#     SSL_SERVER_CERT. These contain the PEM-encoded certificates of the</span>
<span style="color: #666666; font-style: italic;">#     server (always existing) and the client (only existing when client</span>
<span style="color: #666666; font-style: italic;">#     authentication is used). This can be used to import the certificates</span>
<span style="color: #666666; font-style: italic;">#     into CGI scripts.</span>
<span style="color: #666666; font-style: italic;">#   o StdEnvVars:</span>
<span style="color: #666666; font-style: italic;">#     This exports the standard SSL/TLS related `SSL_*' environment variables.</span>
<span style="color: #666666; font-style: italic;">#     Per default this exportation is switched off for performance reasons,</span>
<span style="color: #666666; font-style: italic;">#     because the extraction step is an expensive operation and is usually</span>
<span style="color: #666666; font-style: italic;">#     useless for serving static content. So one usually enables the</span>
<span style="color: #666666; font-style: italic;">#     exportation for CGI and SSI requests only.</span>
<span style="color: #666666; font-style: italic;">#   o StrictRequire:</span>
<span style="color: #666666; font-style: italic;">#     exportation for CGI and SSI requests only.</span>
<span style="color: #666666; font-style: italic;">#   o StrictRequire:</span>
<span style="color: #666666; font-style: italic;">#     This denies access when &quot;SSLRequireSSL&quot; or &quot;SSLRequire&quot; applied even</span>
<span style="color: #666666; font-style: italic;">#     under a &quot;Satisfy any&quot; situation, i.e. when it applies access is denied</span>
<span style="color: #666666; font-style: italic;">#     and no other module can change it.</span>
<span style="color: #666666; font-style: italic;">#   o OptRenegotiate:</span>
<span style="color: #666666; font-style: italic;">#     This enables optimized SSL connection renegotiation handling when SSL</span>
<span style="color: #666666; font-style: italic;">#     directives are used in per-directory context.</span>
<span style="color: #666666; font-style: italic;">#SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>Files ~ <span style="color: #ff0000;">&quot;\.(cgi|shtml|phtml|php3?)$&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
    SSLOptions +StdEnvVars
<span style="color: #000000; font-weight: bold;">&lt;/</span>Files<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #ff0000;">&quot;/var/www/cgi-bin&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
    SSLOptions +StdEnvVars
<span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#   SSL Protocol Adjustments:</span>
<span style="color: #666666; font-style: italic;">#   The safe and default but still SSL/TLS standard compliant shutdown</span>
<span style="color: #666666; font-style: italic;">#   approach is that mod_ssl sends the close notify alert but doesn't wait for</span>
<span style="color: #666666; font-style: italic;">#   the close notify alert from client. When you need a different shutdown</span>
<span style="color: #666666; font-style: italic;">#   approach you can use one of the following variables:</span>
<span style="color: #666666; font-style: italic;">#   o ssl-unclean-shutdown:</span>
<span style="color: #666666; font-style: italic;">#     This forces an unclean shutdown when the connection is closed, i.e. no</span>
<span style="color: #666666; font-style: italic;">#     SSL close notify alert is send or allowed to received.  This violates</span>
<span style="color: #666666; font-style: italic;">#     the SSL/TLS standard but is needed for some brain-dead browsers. Use</span>
<span style="color: #666666; font-style: italic;">#     this when you receive I/O errors because of the standard approach where</span>
<span style="color: #666666; font-style: italic;">#     mod_ssl sends the close notify alert.</span>
<span style="color: #666666; font-style: italic;">#   o ssl-accurate-shutdown:</span>
<span style="color: #666666; font-style: italic;">#     This forces an accurate shutdown when the connection is closed, i.e. a</span>
<span style="color: #666666; font-style: italic;">#     SSL close notify alert is send and mod_ssl waits for the close notify</span>
<span style="color: #666666; font-style: italic;">#     alert of the client. This is 100% SSL/TLS standard compliant, but in</span>
<span style="color: #666666; font-style: italic;">#     practice often causes hanging connections with brain-dead browsers. Use</span>
<span style="color: #666666; font-style: italic;">#     this only for browsers where you know that their SSL implementation</span>
<span style="color: #666666; font-style: italic;">#     works correctly.</span>
<span style="color: #666666; font-style: italic;">#   Notice: Most problems of broken clients are also related to the HTTP</span>
<span style="color: #666666; font-style: italic;">#   keep-alive facility, so you usually additionally want to disable</span>
<span style="color: #666666; font-style: italic;">#   keep-alive for those clients, too. Use variable &quot;nokeepalive&quot; for this.</span>
<span style="color: #666666; font-style: italic;">#   Similarly, one has to force some clients to use HTTP/1.0 to workaround</span>
<span style="color: #666666; font-style: italic;">#   keep-alive for those clients, too. Use variable &quot;nokeepalive&quot; for this.</span>
<span style="color: #666666; font-style: italic;">#   Similarly, one has to force some clients to use HTTP/1.0 to workaround</span>
<span style="color: #666666; font-style: italic;">#   their broken HTTP/1.1 implementation. Use variables &quot;downgrade-1.0&quot; and</span>
<span style="color: #666666; font-style: italic;">#   &quot;force-response-1.0&quot; for this.</span>
SetEnvIf User-Agent <span style="color: #ff0000;">&quot;.*MSIE.*&quot;</span> \
         nokeepalive ssl-unclean-shutdown \
         downgrade-<span style="color: #000000;">1.0</span> force-response-<span style="color: #000000;">1.0</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#   Per-Server Logging:</span>
<span style="color: #666666; font-style: italic;">#   The home of a custom SSL log file. Use this when you want a</span>
<span style="color: #666666; font-style: italic;">#   compact non-error SSL logfile on a virtual host basis.</span>
CustomLog logs<span style="color: #000000; font-weight: bold;">/</span>ssl_request_log \
          <span style="color: #ff0000;">&quot;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x <span style="color: #000099; font-weight: bold;">\&quot;</span>%r<span style="color: #000099; font-weight: bold;">\&quot;</span> %b&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;/</span>VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>so , the result would be something like <a href="http://ssl.namran.net">http://ssl.namran.net</a><br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/result-ssl.jpg"><img src="http://blog.namran.net/wp-content/uploads/2012/02/result-ssl.jpg" alt="" title="result-ssl" width="506" height="345" class="alignnone size-full wp-image-4162" /></a><br />
which is going to expire in next few days. <img src='http://blog.namran.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>not sure going to renew or not yet.</p>
<p>It meant to encrypt the data connection over the net while surfing the stuff at home,<br />
useful for avoiding eavesdropping or man-in-the-middle while surfing via crappy network<br />
connection..</p>
<div class="fblike_button" style="margin: 10px 0;"><fb:like font="lucida grande" href="http%3A%2F%2Fblog.namran.net%2F2012%2F02%2F08%2Fimplementing-ssl-into-webserver%2F" show_faces="false" width="450"></fb:like></div>



<div class="post-fixed"><p>Related posts:<ol><li><a href='http://blog.namran.net/2009/05/15/how-to-use-deflate-in-apache/' rel='bookmark' title='Permanent Link: How to use deflate in apache config to save bandwidth on webserver'>How to use deflate in apache config to save bandwidth on webserver</a></li>
<li><a href='http://blog.namran.net/2010/02/08/installing-and-configuring-openvpn-server-in-centos-5-4/' rel='bookmark' title='Permanent Link: Installing and configuring OpenVPN server in CentOS 5.4'>Installing and configuring OpenVPN server in CentOS 5.4</a></li>
<li><a href='http://blog.namran.net/2009/03/11/blocking-access-to-certain-website-using-route/' rel='bookmark' title='Permanent Link: Blocking access to certain website using route'>Blocking access to certain website using route</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/zu9uc4fSLmpsui8PxyR3fdi-054/0/da"><img src="http://feedads.g.doubleclick.net/~a/zu9uc4fSLmpsui8PxyR3fdi-054/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zu9uc4fSLmpsui8PxyR3fdi-054/1/da"><img src="http://feedads.g.doubleclick.net/~a/zu9uc4fSLmpsui8PxyR3fdi-054/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/HawkeyeExpression/~4/Ktp8u-vpKzQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.namran.net/2012/02/08/implementing-ssl-into-webserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.namran.net/2012/02/08/implementing-ssl-into-webserver/</feedburner:origLink></item>
		<item>
		<title>Alangkah Indahnya Hidup Ini ~ Raihan</title>
		<link>http://feedproxy.google.com/~r/HawkeyeExpression/~3/wR3HcdzSFXw/</link>
		<comments>http://blog.namran.net/2012/02/04/alangkah-indahnya-hidup-ini-raihan/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 13:53:29 +0000</pubDate>
		<dc:creator>namran</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[selawat]]></category>

		<guid isPermaLink="false">http://blog.namran.net/?p=4149</guid>
		<description><![CDATA[Alangkah indahnya hidup ini Andai dapat kutatap wajahmu Kan pasti mengalir air mataku Kerna pancaran ketenanganmu Alangkah indahnya hidup ini Andai dapat kukucup tanganmu Moga mengalir keberkatan dalam diriku Untuk mengikut jejak langkahmu Ya Rasulullah Ya Habiballah Tak pernah kutatap wajahmu Ya Rasulullah Ya Habiballah Kami rindu padamu Allahumma Solli Ala Muhammad Ya Rabbi Solli [...]

<div class="post-fixed">
Related posts:<ol><li><a href='http://blog.namran.net/2011/04/28/sebelum-tidur/' rel='bookmark' title='Permanent Link: Sebelum tidur'>Sebelum tidur</a></li>
<li><a href='http://blog.namran.net/2008/12/30/awal-muharram-1430h/' rel='bookmark' title='Permanent Link: Awal Muharram 1430H'>Awal Muharram 1430H</a></li>
<li><a href='http://blog.namran.net/2007/09/12/maafkan-saya/' rel='bookmark' title='Permanent Link: maafkan saya.'>maafkan saya.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.namran.net/wp-content/uploads/2012/02/selawat.jpg"><img src="http://blog.namran.net/wp-content/uploads/2012/02/selawat.jpg" alt="" title="selawat" width="538" height="303" class="alignnone size-full wp-image-4150" /></a><br />
Alangkah indahnya hidup ini<br />
Andai dapat kutatap wajahmu<br />
Kan pasti mengalir air mataku<br />
Kerna pancaran ketenanganmu</p>
<p>Alangkah indahnya hidup ini<br />
Andai dapat kukucup tanganmu<br />
Moga mengalir keberkatan dalam diriku<br />
Untuk mengikut jejak langkahmu</p>
<p>Ya Rasulullah Ya Habiballah<br />
Tak pernah kutatap wajahmu<br />
Ya Rasulullah Ya Habiballah<br />
Kami rindu padamu<br />
Allahumma Solli Ala Muhammad<br />
Ya Rabbi Solli Alaihi Wasallim ( 2X )<br />
<a href="http://blog.namran.net/wp-content/uploads/2012/02/selawat-2.jpg"><img src="http://blog.namran.net/wp-content/uploads/2012/02/selawat-2.jpg" alt="" title="selawat-2" width="363" height="334" class="alignnone size-full wp-image-4151" /></a><br />
Alangkah indahnya hidup ini<br />
Andai dapat kudakap dirimu<br />
Tiada kata yang dapat aku ucapkan<br />
Hanya tuhan saja yang tahu</p>
<p>Kutahu cintamu kepada umat<br />
Umati kutahu bimbangnya kau tentang kami<br />
Syafaatkan kami<br />
Alangkah indahnya hidup ini<br />
Andai dapat kutatap wajahmu</p>
<p>Kan pasti mengalir air mataku<br />
Kerna pancaran ketenanganmu<br />
Ya Rasulullah Ya Habiballah<br />
Terimalah kami sebagai umatmu<br />
Ya Rasulullah Ya Habiballah<br />
Kurniakanlah syafaatmu&#8230;</p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/bYmmXkvVpBk"></param><embed src="http://www.youtube.com/v/bYmmXkvVpBk" type="application/x-shockwave-flash" width="425" height="350"></embed></object><br />
Source : http://www.youtube.com/watch?v=bYmmXkvVpBk
<div class="fblike_button" style="margin: 10px 0;"><fb:like font="lucida grande" href="http%3A%2F%2Fblog.namran.net%2F2012%2F02%2F04%2Falangkah-indahnya-hidup-ini-raihan%2F" show_faces="false" width="450"></fb:like></div>



<div class="post-fixed"><p>Related posts:<ol><li><a href='http://blog.namran.net/2011/04/28/sebelum-tidur/' rel='bookmark' title='Permanent Link: Sebelum tidur'>Sebelum tidur</a></li>
<li><a href='http://blog.namran.net/2008/12/30/awal-muharram-1430h/' rel='bookmark' title='Permanent Link: Awal Muharram 1430H'>Awal Muharram 1430H</a></li>
<li><a href='http://blog.namran.net/2007/09/12/maafkan-saya/' rel='bookmark' title='Permanent Link: maafkan saya.'>maafkan saya.</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/S1Zl_ZadQ4nR6EZko5gvOxT0Mhc/0/da"><img src="http://feedads.g.doubleclick.net/~a/S1Zl_ZadQ4nR6EZko5gvOxT0Mhc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/S1Zl_ZadQ4nR6EZko5gvOxT0Mhc/1/da"><img src="http://feedads.g.doubleclick.net/~a/S1Zl_ZadQ4nR6EZko5gvOxT0Mhc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/HawkeyeExpression/~4/wR3HcdzSFXw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.namran.net/2012/02/04/alangkah-indahnya-hidup-ini-raihan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.namran.net/2012/02/04/alangkah-indahnya-hidup-ini-raihan/</feedburner:origLink></item>
		<item>
		<title>Anak ~ Biar jadi aset ke syurga</title>
		<link>http://feedproxy.google.com/~r/HawkeyeExpression/~3/SkysEalUSaE/</link>
		<comments>http://blog.namran.net/2012/01/22/anak-biar-jadi-aset-ke-syurga/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 20:21:13 +0000</pubDate>
		<dc:creator>namran</dc:creator>
				<category><![CDATA[Tazkirah]]></category>
		<category><![CDATA[anak]]></category>

		<guid isPermaLink="false">http://blog.namran.net/?p=4143</guid>
		<description><![CDATA[Anak-anak perlu dididik agar menjadi aset untuk kita ke syurga. Insya-Allah , dengan asuhan yang tepat , semoga terpimpin. &#8220;Tanamlah benih pepohonan walaupun esok hari kiamat datang&#8221;. p/s : .. ia tidak pernah terlambat.. Related posts:Panduan Nama Anak/Bayi Dalam Islam Uban dirambut maafkan saya.

<div class="post-fixed">
Related posts:<ol><li><a href='http://blog.namran.net/2010/04/24/panduan-nama-anakbayi-dalam-islam/' rel='bookmark' title='Permanent Link: Panduan Nama Anak/Bayi Dalam Islam'>Panduan Nama Anak/Bayi Dalam Islam</a></li>
<li><a href='http://blog.namran.net/2011/07/30/uban-dirambut/' rel='bookmark' title='Permanent Link: Uban dirambut'>Uban dirambut</a></li>
<li><a href='http://blog.namran.net/2007/09/12/maafkan-saya/' rel='bookmark' title='Permanent Link: maafkan saya.'>maafkan saya.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Anak-anak perlu dididik agar menjadi aset untuk kita ke syurga.<br />
Insya-Allah , dengan asuhan yang tepat , semoga terpimpin.</p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/7pSZKaXlKLM"></param><embed src="http://www.youtube.com/v/7pSZKaXlKLM" type="application/x-shockwave-flash" width="425" height="350"></embed></object></p>
<p>&#8220;Tanamlah benih pepohonan walaupun esok hari kiamat datang&#8221;.</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/01/tanam-benih.jpg"><img src="http://blog.namran.net/wp-content/uploads/2012/01/tanam-benih.jpg" alt="" title="tanam-benih" width="800" height="287" class="alignnone size-full wp-image-4144" /></a></p>
<p>p/s : .. ia tidak pernah terlambat..
<div class="fblike_button" style="margin: 10px 0;"><fb:like font="lucida grande" href="http%3A%2F%2Fblog.namran.net%2F2012%2F01%2F22%2Fanak-biar-jadi-aset-ke-syurga%2F" show_faces="false" width="450"></fb:like></div>



<div class="post-fixed"><p>Related posts:<ol><li><a href='http://blog.namran.net/2010/04/24/panduan-nama-anakbayi-dalam-islam/' rel='bookmark' title='Permanent Link: Panduan Nama Anak/Bayi Dalam Islam'>Panduan Nama Anak/Bayi Dalam Islam</a></li>
<li><a href='http://blog.namran.net/2011/07/30/uban-dirambut/' rel='bookmark' title='Permanent Link: Uban dirambut'>Uban dirambut</a></li>
<li><a href='http://blog.namran.net/2007/09/12/maafkan-saya/' rel='bookmark' title='Permanent Link: maafkan saya.'>maafkan saya.</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/Gqyr0FKYu2HO750REkvKITJN84Q/0/da"><img src="http://feedads.g.doubleclick.net/~a/Gqyr0FKYu2HO750REkvKITJN84Q/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Gqyr0FKYu2HO750REkvKITJN84Q/1/da"><img src="http://feedads.g.doubleclick.net/~a/Gqyr0FKYu2HO750REkvKITJN84Q/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/HawkeyeExpression/~4/SkysEalUSaE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.namran.net/2012/01/22/anak-biar-jadi-aset-ke-syurga/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.namran.net/2012/01/22/anak-biar-jadi-aset-ke-syurga/</feedburner:origLink></item>
		<item>
		<title>Adding IPv6 capabilities to Windows XP network interface</title>
		<link>http://feedproxy.google.com/~r/HawkeyeExpression/~3/I33U8ybIbKg/</link>
		<comments>http://blog.namran.net/2012/01/21/adding-ipv6-capabilities-to-windows-xp-network-interface/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 07:45:08 +0000</pubDate>
		<dc:creator>namran</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://blog.namran.net/?p=4134</guid>
		<description><![CDATA[Assuming you already have the infra for IPv6 .. but only left windows XP not yet able to use IPv6. Go to Network Properties. Right click on the device/interface-> properties Click Install. Click on protocol.. Choose IPV6. ipconfig shall reveal your ipv6 ips. . test to ping ipv6 destination. .. or use http://test-ipv6.com/ to test. [...]

<div class="post-fixed">
Related posts:<ol><li><a href='http://blog.namran.net/2011/01/30/setting-up-ipv6-network-via-tm-unifi-on-centos-5/' rel='bookmark' title='Permanent Link: Setting up IPv6 network via TM Unifi on CentOS 5'>Setting up IPv6 network via TM Unifi on CentOS 5</a></li>
<li><a href='http://blog.namran.net/2011/01/27/first-attempt-with-ipv6-at-home-network/' rel='bookmark' title='Permanent Link: First attempt with ipv6 at home network'>First attempt with ipv6 at home network</a></li>
<li><a href='http://blog.namran.net/2011/01/30/setting-ip6tables-custom-script-for-ipv6/' rel='bookmark' title='Permanent Link: Setting ip6tables custom script for IPv6'>Setting ip6tables custom script for IPv6</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Assuming you already have the infra for IPv6 ..<br />
but only left windows XP not yet able to use IPv6.</p>
<p>Go to Network Properties.</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/01/network-connections.png"><img src="http://blog.namran.net/wp-content/uploads/2012/01/network-connections.png" alt="" title="network-connections" width="800" height="600" class="alignnone size-full wp-image-4135" /></a></p>
<p>Right click on the device/interface-> properties</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/01/local-lan-properties.png"><img src="http://blog.namran.net/wp-content/uploads/2012/01/local-lan-properties.png" alt="" title="local-lan-properties" width="367" height="450" class="alignnone size-full wp-image-4136" /></a></p>
<p>Click Install.</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/01/select-network-component.png"><img src="http://blog.namran.net/wp-content/uploads/2012/01/select-network-component.png" alt="" title="select-network-component" width="307" height="284" class="alignnone size-full wp-image-4137" /></a></p>
<p>Click on protocol..</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/01/select-network-protocol.png"><img src="http://blog.namran.net/wp-content/uploads/2012/01/select-network-protocol.png" alt="" title="select-network-protocol" width="442" height="329" class="alignnone size-full wp-image-4138" /></a></p>
<p>Choose IPV6.</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/01/installed-properties.png"><img src="http://blog.namran.net/wp-content/uploads/2012/01/installed-properties.png" alt="" title="installed-properties" width="367" height="450" class="alignnone size-full wp-image-4139" /></a></p>
<p>ipconfig shall reveal your ipv6 ips.</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/01/done-ipconfig.png"><img src="http://blog.namran.net/wp-content/uploads/2012/01/done-ipconfig.png" alt="" title="done-ipconfig" width="669" height="314" class="alignnone size-full wp-image-4140" /></a>.</p>
<p>test to ping ipv6 destination.</p>
<p><a href="http://blog.namran.net/wp-content/uploads/2012/01/test-with-ipv6.google.png"><img src="http://blog.namran.net/wp-content/uploads/2012/01/test-with-ipv6.google.png" alt="" title="test-with-ipv6.google" width="662" height="259" class="alignnone size-full wp-image-4141" /></a></p>
<p>.. or use http://test-ipv6.com/ to test.</p>
<p>hmm.. the shortcut to all above click-and click.<br />
is. open up command prompt.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">netsh interface ipv6 install</pre></div></div>

<p>haha,</p>
<p>but windows XP doesn&#8217;t support IPv6 DNS usages.. *sigh*.<br />
windows 7 onward only can define IPv6 DNS.. </p>
<p>but you can still use the recursive DNS server on IPv4 that support IPv6 query. <img src='http://blog.namran.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="fblike_button" style="margin: 10px 0;"><fb:like font="lucida grande" href="http%3A%2F%2Fblog.namran.net%2F2012%2F01%2F21%2Fadding-ipv6-capabilities-to-windows-xp-network-interface%2F" show_faces="false" width="450"></fb:like></div>



<div class="post-fixed"><p>Related posts:<ol><li><a href='http://blog.namran.net/2011/01/30/setting-up-ipv6-network-via-tm-unifi-on-centos-5/' rel='bookmark' title='Permanent Link: Setting up IPv6 network via TM Unifi on CentOS 5'>Setting up IPv6 network via TM Unifi on CentOS 5</a></li>
<li><a href='http://blog.namran.net/2011/01/27/first-attempt-with-ipv6-at-home-network/' rel='bookmark' title='Permanent Link: First attempt with ipv6 at home network'>First attempt with ipv6 at home network</a></li>
<li><a href='http://blog.namran.net/2011/01/30/setting-ip6tables-custom-script-for-ipv6/' rel='bookmark' title='Permanent Link: Setting ip6tables custom script for IPv6'>Setting ip6tables custom script for IPv6</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/I2GW6od3p39PI-K6KecD39KIFZQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/I2GW6od3p39PI-K6KecD39KIFZQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/I2GW6od3p39PI-K6KecD39KIFZQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/I2GW6od3p39PI-K6KecD39KIFZQ/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/HawkeyeExpression/~4/I33U8ybIbKg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.namran.net/2012/01/21/adding-ipv6-capabilities-to-windows-xp-network-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.namran.net/2012/01/21/adding-ipv6-capabilities-to-windows-xp-network-interface/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 9.414 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-02-11 00:36:41 --><!-- Compression = gzip -->

