请问,我现在有一个服务器端和客户端,如何使用ssl进行通信呢?
  我知道indy9中有IdServerIOHandlerSSL和IdSSLIOHandler两个控件可以使用,有以下几个问题不太清楚:
  1 这两个控件的证书文件是如何产生的,用的时候有什么关系呢?
  2 流程处理
  如果有例程最好,谢谢了.

解决方案 »

  1.   

    http://aiirii.mblogger.cn/posts/3782.aspxSecureBlackboxDelphi / C++Builder / Kylix components for SSL and TLS supportWith SSLBlackbox/VCL you can add support for secure connections using SSL2, SSL3 and TLS1 protocols to your Delphi or Kylix application. SSLBlackbox/VCL is pure Delphi code without dependency from third-party libraries (besides standard Win32/Linux API and VCL/CLX).SecureBlackbox does not use CryptoAPI, OpenSSL or other third-party encryption library.Welcome to the OpenSSL ProjectOpenSSL is based on the excellent SSLeay library developed by Eric A. Young and Tim J. Hudson. The OpenSSL toolkit is licensed under an Apache-style licence, which basically means that you are free to get and use it for commercial and non-commercial purposes subject to some simple license conditions. Delphi import unit for OpenSSL DLLDelphi can use OpenSSL library invoking DLL.
    OpenSSL toolkit is divided in two modules: libssl, implementing SSLv2/v3 and TLS for network communications and libcrypto, that implements cryptography functions.
    To use SLv2/v3 and TLS network function with Delphi, you can use components from Indy project.
    CSITA has developed a unit to import some function about X.509 certificate.IndySSL – using certificate authentication This document explains how to use certificate authentication when connecting to a site that requires certificate authentication. We are using Indy components on the client side and some server (MS IIS, Apache, ...) on the server side. In the example we will be using http protocol, cause it is very easy to set such an environment.First of all we must get certificates and private keys for the client. Let's suppose that we got some private key/certificate pair from some Certificate Authority (like Verisign) and we have this listed in MS IE in Personal Certificates Store.
      

  2.   

    谢谢楼上的兄弟,我看了的,其实参考文章好像好找的就是那篇文章:IndySSL – using certificate authentication ,SecureBlackbox好像不是免费的,Indy我也不怎么会用,帮主文件也很简单,主要还是上面提出的问题,请有经验的兄弟姐妹解决一下,谢谢了.