Wednesday, February 29, 2012

SSL Client Data dump test using OpenSSL

① Command at OpenSSL server is as follows:

OpenSSL> s_server -accept 443 -cert ser.txt -key key.txt -verify 1 -WWW


② Send the following data from SSL Client:

   char http_request[] = "GET /index.txt HTTP/1.0\r\n"
                                "User-Agent: SSL Client\r\n"
                                "Accept: text/plain\r\n"
                                "\r\n";
③ Place index.txt at "OpenSSL-Win32/bin". If you get error "Error opening 'index.txt'", check the file name is set correctly. Sometimes the file extension also set as name. It may be "index.txt.txt".

④ When you send the command shown in ②, OpenSSL server will send the index.txt to the SSL client. Set the index.txt with arbitrary sizes and test the client.

No comments:

Post a Comment