Solved

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

Posted on 1998-08-11
2
444 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
ID: 1232365
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
ID: 1232366
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

685 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