Solved

: "SSLeay + BER + DER + Diffie-Hellman algorithm"

Posted on 1998-08-11
2
440 Views
Last Modified: 2010-04-16
Hi,
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
Young eay@cryptsoft.com.

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 tjh@cryptsoft.com.

This implementation has been used by Tim Hudson tjh@cryptsoft.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:

    Apache
    CERN (or W3C) httpd
    Lynx
    mSQL

SSLeay implements the following encryption algorithms:

    DES
    RSA
    RC4
    IDEA
    Blowfish
"
URL: http://ssleay.connectnet.com/

To download SSL
ftp://ftp.connectnet.com/pub/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
type:
1. perl Configure VC-WIN32
2. nmake -f ms\ntdll.mak

Go to directory c:\SSLeay-0.8.1b\out,double 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.......  -outform ..DEC/BER/.TXT.

 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.

Thank you  
0
Comment
Question by:ee9553
2 Comments
 

Accepted Solution

by:
botafogo earned 10 total points
Comment Utility
I'm not sure what you want to do.  If you want to generate the
Diffie-Hellman paramenters use the gendh comand.  
gendh -out dh.pem.  You can provide other parameters if you will.
Now to convert the dh file to the der format, use
dh -in dh.pem -out dh.der -inform pem -outform der.  Now you have
the dh in the der format.

0
 

Author Comment

by:ee9553
Comment Utility
Hello botafogo,

Thank you for sharing your thoughts.  I finally received something from the program which is the something right.

Thank you
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now