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

<channel>
	<title>lizongbo at 618119.com &#187; SSL</title>
	<atom:link href="http://618119.com/category/java/ssl/feed" rel="self" type="application/rss+xml" />
	<link>http://618119.com</link>
	<description>工作,生活,Android,前端,Linode,Ubuntu,nginx,java,apache,tomcat,Resin,mina,Hessian,XMPP,RPC</description>
	<lastBuildDate>Tue, 31 Jan 2012 14:25:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Ubuntu Server 10.04 LTS的Linux上编译安装配置nginx0.8.52</title>
		<link>http://618119.com/archives/2010/10/22/174.html</link>
		<comments>http://618119.com/archives/2010/10/22/174.html#comments</comments>
		<pubDate>Fri, 22 Oct 2010 05:37:20 +0000</pubDate>
		<dc:creator>lizongbo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[linode]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://618119.com/?p=174</guid>
		<description><![CDATA[Ubuntu Server 10.04 LTS的Linux上安装配置nginx0.8.52 操作系统是linode上的Linux:Ubuntu Server 10.04 LTS。 nginx的最新版本是：0.8.52 http://nginx.org/download/nginx-0.8.52.tar.gz 来源：http://nginx.org/en/download.html nginx依赖的PCRE库，最新版本是：8.10： ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.10.tar.gz 来源：ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ OpenSSL的最新版本是：1.0.0a: http://www.openssl.org/source/openssl-1.0.0a.tar.gz 来源：http://www.openssl.org/source/ zlib的最新版本是：1.2.5： http://zlib.net/zlib-1.2.5.tar.gz 在/usr/local目录下创建app目录，所有应用都安装配置到这个目录下面： root@618119.com:/usr/local# sudo mkdir app root@618119.com:/usr/local# cd ./app 然后下载安装程序： root@618119.com:/usr/local/app# wget http://nginx.org/download/nginx-0.8.52.tar.gz root@618119.com:/usr/local/app# wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.10.tar.gz root@618119.com:/usr/local/app# wget http://www.openssl.org/source/openssl-1.0.0a.tar.gz root@618119.com:/usr/local/app# wget http://zlib.net/zlib-1.2.5.tar.gz 再解压压缩包： root@618119.com:/usr/local/app# tar -zxvf nginx* root@618119.com:/usr/local/app# tar -zxvf pcre* root@618119.com:/usr/local/app# tar -zxvf openssl* root@618119.com:/usr/local/app# tar [...]]]></description>
		<wfw:commentRss>http://618119.com/archives/2010/10/22/174.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache MINA 2.0.0-M1 试用体会</title>
		<link>http://618119.com/archives/2008/03/07/73.html</link>
		<comments>http://618119.com/archives/2008/03/07/73.html#comments</comments>
		<pubDate>Fri, 07 Mar 2008 06:15:25 +0000</pubDate>
		<dc:creator>lizongbo</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[apache mina]]></category>
		<category><![CDATA[smpp]]></category>
		<category><![CDATA[smppapi]]></category>

		<guid isPermaLink="false">http://618119.com/archives/2008/03/07/73.html</guid>
		<description><![CDATA[Apache MINA 2.0.0-M1 的api比1.x更简单好用了， 新增加了许多filter功能，各个filter 功能在filter包下面以子目录方式存放，例如： org.apache.mina.filter.executor.ExecutorFilter org.apache.mina.filter.ssl.SslFilter org.apache.mina.filter.keepalive.KeepAliveFilter org.apache.mina.filter.compression.CompressionFilter org.apache.mina.filter.firewall.BlacklistFilter org.apache.mina.filter.logging.LoggingFilter [code] public static void main(String[] args) throws IOException, Exception { IoAcceptor acceptor = new NioSocketAcceptor(); DefaultIoFilterChainBuilder chain = acceptor.getFilterChain(); //Utils.addServerSSLSupport(chain); Utils.addThreadPool(chain); // Utils.addCompress(chain); Utils.addCodec(chain); Utils.addLogger(chain); SMPPServerSessionHandler handlers = new SMPPServerSessionHandler(); handlers.getHandles().put(Integer.valueOf(0x00000001), new com.lizongbo.smpp.server.handlers. BindReceiverHandler()); handlers.getHandles().put(Integer.valueOf(0x00000002), new com.lizongbo.smpp.server.handlers. BindTransmitterHandler()); handlers.getHandles().put(Integer.valueOf(0x00000004), new com.lizongbo.smpp.server.handlers. SubmitSMHandler()); handlers.getHandles().put(Integer.valueOf(0x00000006), [...]]]></description>
		<wfw:commentRss>http://618119.com/archives/2008/03/07/73.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用Spring,smppapi,apache mina, commons ssl快速实现安全的smpp smsc (六)</title>
		<link>http://618119.com/archives/2007/12/14/46.html</link>
		<comments>http://618119.com/archives/2007/12/14/46.html#comments</comments>
		<pubDate>Fri, 14 Dec 2007 06:37:02 +0000</pubDate>
		<dc:creator>lizongbo</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[apache mina]]></category>
		<category><![CDATA[commons ssl]]></category>
		<category><![CDATA[smpp]]></category>
		<category><![CDATA[smppapi]]></category>
		<category><![CDATA[smsc]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[短信]]></category>

		<guid isPermaLink="false">http://618119.com/archives/2007/12/14/46.html</guid>
		<description><![CDATA[接上一篇： http://618119.com/archives/2007/12/13/45.html 使用 commons ssl生成 SSLContext ： [code] package com.lizongbo.smpp.ssl; import javax.net.ssl.SSLContext; import java.security.GeneralSecurityException; import java.io.IOException; import javax.net.ssl.KeyManager; import org.apache.commons.ssl.KeyMaterial; public class SMPPSSLContextFactory { private static final String PROTOCOL = "TLS"; private static final String CA_FILE = "ca.crt.properties"; private static final String CERT_FILE = "server.crt.properties"; private static final String KEY_FILE = "server.key.properties"; private static final [...]]]></description>
		<wfw:commentRss>http://618119.com/archives/2007/12/14/46.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>用Spring,smppapi,apache mina, commons ssl快速实现安全的smpp smsc (五)</title>
		<link>http://618119.com/archives/2007/12/13/45.html</link>
		<comments>http://618119.com/archives/2007/12/13/45.html#comments</comments>
		<pubDate>Thu, 13 Dec 2007 00:43:32 +0000</pubDate>
		<dc:creator>lizongbo</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[apache mina]]></category>
		<category><![CDATA[commons ssl]]></category>
		<category><![CDATA[JMX]]></category>
		<category><![CDATA[smpp]]></category>
		<category><![CDATA[smppapi]]></category>
		<category><![CDATA[smsc]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[短信]]></category>

		<guid isPermaLink="false">http://618119.com/archives/2007/12/13/45.html</guid>
		<description><![CDATA[接上一篇: http://618119.com/archives/2007/12/06/39.html 为 DefaultIoFilterChainBuilder 增加filter: [code] import org.apache.mina.filter.LoggingFilter; import javax.net.ssl.SSLContext; import org.apache.mina.filter.SSLFilter; import org.apache.mina.common.DefaultIoFilterChainBuilder; import org.apache.mina.filter.codec.ProtocolCodecFilter; import org.apache.commons.ssl.*; import java.io.*; import java.security.*; import com.lizongbo.smpp.ssl.SMPPSSLContextFactory; import com.lizongbo.smpp.server.codec.SMPPProtocolCodecFactory; public static final int PORT = 5432; public static final int CONNECT_TIMEOUT = 3; // seconds private static final boolean USE_SSL = true; private static final boolean USE_LOG = [...]]]></description>
		<wfw:commentRss>http://618119.com/archives/2007/12/13/45.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>用Spring,smppapi,apache mina, commons ssl快速实现安全的smpp smsc (四)</title>
		<link>http://618119.com/archives/2007/12/06/39.html</link>
		<comments>http://618119.com/archives/2007/12/06/39.html#comments</comments>
		<pubDate>Thu, 06 Dec 2007 01:18:01 +0000</pubDate>
		<dc:creator>lizongbo</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[apache mina]]></category>
		<category><![CDATA[commons ssl]]></category>
		<category><![CDATA[smpp]]></category>
		<category><![CDATA[smppapi]]></category>
		<category><![CDATA[smsc]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[短信]]></category>

		<guid isPermaLink="false">http://618119.com/archives/2007/12/06/39.html</guid>
		<description><![CDATA[接上一篇: http://618119.com/archives/2007/12/03/35.html 对 SMPPPacket的业务处理代码: 1.处理 BIND_RECEIVER消息 [code] package com.lizongbo.smpp.server.handlers; import org.apache.mina.common.*; import com.lizongbo.smpp.server.*; import ie.omk.smpp.*; import ie.omk.smpp.message.*; import ie.omk.smpp.message.tlv.*; import ie.omk.smpp.util.*; import ie.omk.smpp.version.*; /** * * &#60;p&#62;Title: BindReceiver Handler&#60;/p&#62; * * &#60;p&#62;Description: smpp BIND_RECEIVER&#60;/p&#62; * * &#60;p&#62;Copyright: Copyright (c) 2007&#60;/p&#62; * * &#60;p&#62;Company: http://618119.com &#60;/p&#62; * * @author lizongbo * @version 1.0 */ public class [...]]]></description>
		<wfw:commentRss>http://618119.com/archives/2007/12/06/39.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>用Spring,smppapi,apache mina, commons ssl快速实现安全的smpp smsc (三)</title>
		<link>http://618119.com/archives/2007/12/03/35.html</link>
		<comments>http://618119.com/archives/2007/12/03/35.html#comments</comments>
		<pubDate>Mon, 03 Dec 2007 03:30:25 +0000</pubDate>
		<dc:creator>lizongbo</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[apache mina]]></category>
		<category><![CDATA[commons ssl]]></category>
		<category><![CDATA[smpp]]></category>
		<category><![CDATA[smppapi]]></category>
		<category><![CDATA[smsc]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[短信]]></category>

		<guid isPermaLink="false">http://618119.com/archives/2007/12/03/35.html</guid>
		<description><![CDATA[接上一篇: http://618119.com/archives/2007/11/29/34.html 针对每个SMPPPacket的处理,将其以接口方式进行处理,接口定义如下: [code] package com.lizongbo.smpp.server; import org.apache.mina.common.IoSession; import ie.omk.smpp.message.SMPPPacket; import ie.omk.smpp.BadCommandIDException; public interface SMPPPacketHandler { void process(IoSession session, SMPPPacket packet) throws BadCommandIDException; } [/code] SMPPServerSessionHandler中通过commandid来找到相应的handler,然后进行处理. [code] package com.lizongbo.smpp.server; import java.util.*; import org.apache.mina.common.*; import ie.omk.smpp.*; import ie.omk.smpp.message.*; import ie.omk.smpp.version.*; public class SMPPServerSessionHandler extends IoHandlerAdapter { private Map&#60;Long, SMPPPacketHandler&#62; handles = null; private int readerIdleTimeout = [...]]]></description>
		<wfw:commentRss>http://618119.com/archives/2007/12/03/35.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>用Spring,smppapi,apache mina, commons ssl快速实现安全的smpp smsc (二)</title>
		<link>http://618119.com/archives/2007/11/29/34.html</link>
		<comments>http://618119.com/archives/2007/11/29/34.html#comments</comments>
		<pubDate>Thu, 29 Nov 2007 06:39:00 +0000</pubDate>
		<dc:creator>lizongbo</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[apache mina]]></category>
		<category><![CDATA[commons ssl]]></category>
		<category><![CDATA[smpp]]></category>
		<category><![CDATA[smppapi]]></category>
		<category><![CDATA[smsc]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[短信]]></category>

		<guid isPermaLink="false">http://618119.com/archives/2007/11/29/34.html</guid>
		<description><![CDATA[接上一篇: http://618119.com/archives/2007/11/27/31.html 对smpp 数据包进行编码和解码的相关代码如下: ProtocolCodecFactory的代码为: [code] package com.lizongbo.smpp.server.codec; import org.apache.mina.filter.codec.ProtocolCodecFactory; import org.apache.mina.filter.codec.ProtocolEncoder; import org.apache.mina.filter.codec.ProtocolDecoder; public class SMPPProtocolCodecFactory implements ProtocolCodecFactory { ProtocolDecoder decoder = new SMPPProtocolDecoder(); ProtocolEncoder encoder = new SMPPProtocolEncoder(); public ProtocolEncoder getEncoder() throws Exception { return encoder; } public ProtocolDecoder getDecoder() throws Exception { return decoder; } } [/code] 数据包解码的ProtocolDecoder为 [code] package com.lizongbo.smpp.server.codec; import [...]]]></description>
		<wfw:commentRss>http://618119.com/archives/2007/11/29/34.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>用Spring,smppapi,apache mina, commons ssl快速实现安全的smpp smsc (一)</title>
		<link>http://618119.com/archives/2007/11/27/31.html</link>
		<comments>http://618119.com/archives/2007/11/27/31.html#comments</comments>
		<pubDate>Tue, 27 Nov 2007 05:19:51 +0000</pubDate>
		<dc:creator>lizongbo</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[apache mina]]></category>
		<category><![CDATA[commons ssl]]></category>
		<category><![CDATA[smpp]]></category>
		<category><![CDATA[smppapi]]></category>
		<category><![CDATA[smsc]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[短信]]></category>

		<guid isPermaLink="false">http://618119.com/archives/2007/11/27/31.html</guid>
		<description><![CDATA[需要用到的java库有: Apache mina : http://mina.apache.org Spring: http://www.springframework.org/ smppapi http://smppapi.sourceforge.net/ commons ssl: http://juliusdavies.ca/commons-ssl/ smpp smsc Server的服务端启动代码: [code] package com.lizongbo.smpp.server; import org.apache.mina.filter.LoggingFilter; import com.lizongbo.smpp.server.codec.SMPPProtocolCodecFactory; import org.apache.mina.filter.codec.ProtocolCodecFilter; import org.apache.mina.common.DefaultIoFilterChainBuilder; import java.net.InetSocketAddress; import org.apache.mina.common.IoAcceptorConfig; import org.apache.mina.transport.socket.nio.SocketAcceptor; import org.apache.mina.common.IoAcceptor; import org.apache.mina.transport.socket.nio.SocketAcceptorConfig; import java.io.IOException; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import java.util.Set; import org.apache.mina.common.IoSession; import ie.omk.smpp.*; import ie.omk.smpp.message.*; import ie.omk.smpp.util.PacketFactory; import java.util.*; import [...]]]></description>
		<wfw:commentRss>http://618119.com/archives/2007/11/27/31.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

