I have posted this question in the "Ask a C++ programming question" a few day ago,but for a second thought, this question is regarding about security, cryptography, diffie-hillman. So I like to re-send it again in Java ,
Thank you so much for answering the two questions that I have posted a couple weeks ago. Especially the asnwer from alexo. I am afraid that I have a more difficult question this time.
A bit about SSleay program.
"SSLeay is a free implementation of Netscape's Secure Socket Layer - the software encryption protocol behind the Netscape Secure
Server and the Netscape Navigator Browser.
SSLeay is pronounced S-S-L-e-a-y (i.e. each letter is pronounced individually).
SSLeay implements both SSLv2 (version 2) and SSLv3 (version 3) as of the release of SSLeay-0.8.0.
This implementation was coded from scratch using only the publicly available documentation of the various protocols by Eric
The initial prompting to tackle an SSL implementation, the alpha testing, SSL developer (i.e. Eric) hassling, Windows port and
documentation was done by Tim Hudson firstname.lastname@example.org.
This implementation has been used by Tim Hudson email@example.com to add SSL support to the following:
telnet (server and client) [now called SSLtelnet]
ftp (server and client) [now called SSLftp]
NCSA Mosaic 2.5
NCSA Mosaic 2.6b1
NCSA Mosaic 2.6b2
NCSA httpd 1.3
The following applications are also now available based on the earlier work with input from others:
NCSA httpd 1.4.2
Support for the following are also available:
CERN (or W3C) httpd
SSLeay implements the following encryption algorithms:
To download SSL
- SSLeay source
To run the SSLeay program, there are two things need to be done.
1. Install Microsoft Visual C++
2. Install Perl
For Windows NT/95 DLL's
1. perl Configure VC-WIN32
2. nmake -f ms\ntdll.mak
Go to directory c:\SSLeay-0.8.1b\out,doubl
e click on file ssleay.exe, a dos console window will display ?
Type dh ?
A list of option will shown you how to use the command line i.e:
SSLeay > dh -inform ...DEC/BER/TXT....... -ou
As the way I understand it, the input file HAVE TO be in the DEC/BER formats. I have tried to use text file, but it say bad input format. I think, the main problem is how to generate the file in the format of BER or DER. I don't think what contain inside the file is matter.
Question: How to generate a file with the extension BER. DER?
I am sorry that I have lost you somewhere above, but I am really appreciated if you could share some of your thoughts on the above matter.