Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 1998-08-11
2
Medium Priority
?
452 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
botafogo earned 30 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

609 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