Re: [openssl-users] Java Snippet output is not equal to command line openssl command output , Why ?

2018-08-01 Thread Blumenthal, Uri - 0553 - MITLL
Actually, it all works just fine. Viktor's point about adding terminating "\n" to the input text helped. -BEGIN PRIVATE KEY- MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDGlXflMDDD8kOP TP5y06tSXe1g8G3uJAoGHT8NewYANIONuJEZveXnfL8+bJRIu8FDzeCc4SWsCISK

Re: [openssl-users] Java Snippet output is not equal to command line openssl command output , Why ?

2018-08-01 Thread Viktor Dukhovni
> On Aug 1, 2018, at 12:47 PM, timmy pony wrote: > > On Wed, Aug 1, 2018 at 4:28 PM Viktor Dukhovni > wrote: > On Wed, Aug 01, 2018 at 09:24:38AM +0100, timmy pony wrote: > > > I have tried this > > > > openssl dgst -sha256 -sign my_private.key -out /tmp/sign.sha256 > > codeTosign.txt >

Re: [openssl-users] Java Snippet output is not equal to command line openssl command output , Why ?

2018-08-01 Thread timmy pony
Hi Vicktor - I put a '\n' at end of java snippet Both are now equal Thank you for your help. On Wed, Aug 1, 2018 at 5:47 PM timmy pony wrote: > Hi Vicktor, Speed read the previous mail. > > > > On Wed, Aug 1, 2018 at 4:28 PM Viktor Dukhovni > wrote: > >> On Wed, Aug 01, 2018 at 09:24:38AM

Re: [openssl-users] Java Snippet output is not equal to command line openssl command output , Why ?

2018-08-01 Thread timmy pony
Hi Vicktor, Speed read the previous mail. On Wed, Aug 1, 2018 at 4:28 PM Viktor Dukhovni wrote: > On Wed, Aug 01, 2018 at 09:24:38AM +0100, timmy pony wrote: > > > I have tried this > > > > openssl dgst -sha256 -sign my_private.key -out /tmp/sign.sha256 > codeTosign.txt > > This produces raw

Re: [openssl-users] Java Snippet output is not equal to command line openssl command output , Why ?

2018-08-01 Thread Viktor Dukhovni
> On Aug 1, 2018, at 12:14 PM, timmy pony wrote: > > Thanks Viktor, > for assistance . > The embedded private key "skeleton" is only for visualisation purposes; No it > will not. > > > the openssl command returns binary. > so i can do .But they are still coming out different. > >

Re: [openssl-users] Java Snippet output is not equal to command line openssl command output , Why ?

2018-08-01 Thread timmy pony
Thanks Viktor, for assistance . The embedded private key "skeleton" is only for visualisation purposes; No it will not. the openssl command returns binary. so i can do .But they are still coming out different. openssl base64 -in /tmp/sign.sha256 -out On Wed, Aug 1, 2018 at 4:28 PM Viktor

Re: [openssl-users] Java Snippet output is not equal to command line openssl command output , Why ?

2018-08-01 Thread Viktor Dukhovni
On Wed, Aug 01, 2018 at 09:24:38AM +0100, timmy pony wrote: > I have tried this > > openssl dgst -sha256 -sign my_private.key -out /tmp/sign.sha256 codeTosign.txt This produces raw binary output, no base64 encoding. What is the content of the file "codeToSign.txt"? Post the output of: od

Re: Openssl for Java application

2008-06-02 Thread Mehdi Asgari
http://noc.kpnw.org/~scott/ http://www.bpsinfo.com/javassl/ http://sponsor.iti.informatik.tu-darmstadt.de/itissl/

Re: Openssl for Java application

2008-06-02 Thread Julius Davies
Hi, Khoo Wei Hiong, What are you trying to do exactly? If you're doing password-based encryption/decryption with symmetric keys (e.g. AES, 3DES with openssl enc on command-line), then the not-yet-commons-ssl java library will help you interop with OpenSSL: http://juliusdavies.ca/commons-ssl/

Re: Openssl for Java application

2008-06-02 Thread Larry Bugbee
So, I hope that I will get sufficient information from you on how to integrate OpenSSL into my Java application. You might find it a lot easier if you were to use Bouncy Castle. http://www.bouncycastle.org/

Re: Openssl in java

2004-12-18 Thread Kabher Khan
to encrypt in c++ and bouncy castle to decrypt in java.ThanksS.Suresh- Original Message -From: Lawrence Bowie <[EMAIL PROTECTED]>Date: Thursday, December 16, 2004 10:38 amSubject: Re: Openssl in java Try the native implementation bundled with Sun else you will have to use some JNI m

Re: Openssl in java

2004-12-15 Thread Lawrence Bowie
Try the native implementation bundled with Sun else you will have to use some JNI methods ... http://java.sun.com/products/jsse/ LDB [EMAIL PROTECTED] wrote: Hi, I am developing server application in java and client in vc++. How to use openssl from java. Thanks in abvance S.Suresh

Re: Openssl in java

2004-12-15 Thread suresh . kumar
Hi, Thanks for your reply. can i use openssl to encrypt in c++ and bouncy castle to decrypt in java. Thanks S.Suresh - Original Message - From: Lawrence Bowie [EMAIL PROTECTED] Date: Thursday, December 16, 2004 10:38 am Subject: Re: Openssl in java Try the native implementation

RE: OpenSSL and JAVA

2004-08-11 Thread Liam Escario
I'm having problems importing my OpennSSL certificates to my keystore. I created my root certificate in cacert.pem and I'm trying to import this now to my keystore. okay. some progress. I was able to import my CA using keytool. Apparently, you have to specify an alias for it. keytool

RE: OpenSSL and JAVA

2004-08-11 Thread Liam Escario
Then I tried importing a certificate signed by my CA. But now it's complaining that Input not an X.509 certificate. Is it because my extension is .pem? Yes! I found the answer by going through some old threads in the Sun Microsystems website. I had to convert the PEM certificate to a DER file

Re: OpenSSL and JAVA

2004-08-11 Thread Craig Gleadall
Liam, All you will need to do is comvert the PEM format to DER. If you user cert is called me.pem then: openssl x509 -in me.pem -outform DER -out me.cer I think that is all you will need to do. I don't have access to my openssl right now, but I have done this before to get the certs into

RE: OpenSSL with Java?

2004-04-28 Thread David Schwartz
I know that OpenSSL supports both windows and Unix, and it is used from C and C++ programs. My question is the following: Can we use OpenSSL from Java programs as well ( I am a new OpenSSL user)? I am planning on using OpenSSL on Linux and Windows OS, C++ and Java programs. Sure you

Re: OpenSSL with Java?

2004-04-28 Thread Paul L. Allen
Elie Lalo wrote: I know that OpenSSL supports both windows and Unix, and it is used from C and C++ programs. My question is the following: Can we use OpenSSL from Java programs as well ( I am a new OpenSSL user)? I am planning on using OpenSSL on Linux and Windows OS, C++ and Java programs. Java

Re: OpenSSL with Java?

2004-04-28 Thread Lawrence Bowie
Yes, the JDK from http://java.sun.com supports SSL. The package is called JSSE. It integrates really well. LDB Elie Lalo wrote: Hi, I know that OpenSSL supports both windows and Unix, and it is used from C and C++ programs. My question is the following: Can we use OpenSSL from Java programs as

Re: OpenSSL for Java

2003-09-26 Thread QM
: [snip] : can use Java, Delphi, or VB to write the client app in. Are there quality : ports of openssl libs available for any or all of these languages? If your client will simply communicate with the server over an SSL-encrypted network socket, chances are you won't have to use a port of

Re: OpenSSL for Java

2003-09-26 Thread Stefan Krabbe
Hi Dann. Dann wrote: I can use Java, Delphi, or VB to write the client app in. Are there quality ports of openssl libs available for any or all of these languages? I am only a novice with regards to SSL, but I think I can give you some hints. 1a) If you want to use java to implement your

Re: OpenSSL for Java??????

2000-11-24 Thread Soul Fire
Yep ... it's called pureTLS and you can pickit up from http://www.rtfm.com/puretls luck -Original Message- From:Mads Rasmussen [EMAIL PROTECTED] Sent:Fri, 24 Nov 2000 14:36:31 -0300 To: [EMAIL PROTECTED] Subject: OpenSSL for Java?? Hi there, Any effort is being

Re: openssl client - java jsse server problem

2000-05-30 Thread Will Rusch
Thanks for this helpful reply. This problem is mentioned in the java-security archives, along with the claim that jsse is correctly implemented: http://archives.java.sun.com/cgi-bin/wa?A2=ind0004L=java-securityD=0H=0O=DT=1P=234 Where shall I start digging in the openssl source to build your