Solved

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

Posted on 1998-08-11
2
443 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Title # Comments Views Activity
map related example 6 55
how to add new optional parameter to JSP 1 49
Error in @AspectJ Based AOP with Spring 2 18
What's wrong with this code? 4 25
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

789 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