Keytool API

102 byte By danttrana at 2007-9-27 4:53:32
Is there any API to query of a list of certificates in keystore?Thanks-Dan

Simple question, please help

304 byte By leornunga at 2007-9-27 4:58:55
I just need to know right now can SSL be used for secure FTP to send commands and data over separate channels, and if so, how? I want to replace a simple FTP socket connection with a secure one, nothing fancy. I don't want to use HTTP unless I absolutely have to. Any advice would be ...

Need clarification on the authentication process in JSSE

646 byte By jmotta at 2007-9-27 5:10:08
I would like to have an authentication process that goes something like this:A connects to BA gets a certificate from BA prompts its user to ask if they wish to accept itA forges the connection and keeps the cert in a store so it wont have to prompt the user laterFrom my reading of the JSSE ...

JSEE unknown protocol: https

598 byte By camasuvia at 2007-9-27 5:12:57
hi all, i have already downloaded jsee and put 3 jar files in the classpath definition. jcert.jar jnet.jar jsse.jar in my code i make the following changes ; System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol"); Security.addProvider(new ...

Custom TrustManager example which asks user for trustability

20057 byte By martindeinhofera at 2007-9-27 5:42:48
Hi!For I needed a trustmanager which shows an untrusted server certificate to the user and asks him if the certificate can be considered trustable I wrote an own trustmanager. As it took much time to find out how to do this here is my code to shorten your time if you need a similar ...

EJB through Firewall

151 byte By EitanWa at 2007-9-27 5:49:18
what kind of Socket should i use inorder to enable EJB RMI based calls from client to server through a Firewall that NATes IP addresses ?

SSL and RMI: Client hangs when trying to connect

2338 byte By drmatta at 2007-9-27 5:52:13
Hi all,Sorry for the cross-posting (I first posted to the RMI forum) but I thought someone here might be able to shed some light. The original message follows.I have a very simple client/server model implemented using RMI. Previously I used the default socket factories for creating ...

sending credit card number over ssl

429 byte By kevincrowleya at 2007-9-27 5:53:05
just need to know the best way to send a credit card number to a servlet securely is it possible to set up an ssl connection with a servlet from a browser and then post a credit card number to that servlet or do you have to have some source code on the client side with an applet or jsp tag if ...

SSL Socket with authentication

164 byte By JensMuellera at 2007-9-27 6:15:28
Hi,i want to have a SSL Socket which works with a cgi script. I don't want to use HttpsConnection ond no client certificate. How works it?Jens

HttpsURLConnectionOldImpl problem

585 byte By Wfukumaea at 2007-9-27 6:20:21
I using Tomcat 4.0.3 and SDK 1.4. Trying to create a filter that will make a SSL connection to a URL. When I attempt to open the secure connection to the URL I get a java.lang.ClassCastException. I've created a client application and have successfully communicated with the secure web server. ...

SSL Client Sample?

300 byte By mremperora at 2007-9-27 6:25:54
Hi there..I am trying to start up a simple SSL client.But it just keep messing with me..Does anyone know where i can download a sample or does anyone have a sample for me?I would really appreciate ...

Certificate for M$OutlookExpress?

519 byte By iandreia at 2007-9-27 6:33:31
Hi,I am testing java smtp server with SSL support for socket connection.Everything works fine with plain socket.With ssl I've got problems.I've generated certificate with keytool:keytool -genkey -alias xxx -keyalg RSAServer starts ok and uses certificate.But when I am trying to send email via ...

keystore & password specification not working for me

1219 byte By heartenergya at 2007-9-27 6:35:57
I am getting a java.io.FileNotFoundException error looking for the default keystore when I try to use JSSE and SSLServerSocketFactory. JAVA thinks it should be my ?lt;user-home>/.keystore?directory.In the 揓avaTM Secure Socket Extension 1.0.2 Installation Instructions?found at ...

How to popup a authorize window like IE when we connect to a SSL server ..?

127 byte By godspeeda at 2007-9-27 6:37:38
How to popup a authorize window like IE when we connect to a SSL server with untrust certicicate?Help me! Thanks!

Client Authentication in a Java Client with JSSE

3066 byte By mmveleza at 2007-9-27 6:37:43
Hello, I am trying to connect with a Server from a Java Client. The Server needs Client Authentication. I have two files cert.der (Certificate) and secure.soloregistros.com.der (Private Keys).I got to make the SSL Connection with Phaos SSLava. The code is:SSLCertificate rsaCert = new ...

Urgent Help Reqd, Active Directory with Netscape LDAP API using JSSE

747 byte By sridhar75va at 2007-9-27 6:46:41
I am sure there will be many guys, who must have resolved this problem.If anyone has solution/suggestion please help me.I am able to successfully connect to Active Directory using JNDI/SSL.The problem is I am unable to do the same using Netscape LDAP API, JSSE.Here is the code which I am ...

SSLSocket - How its work

303 byte By tomyma at 2007-9-27 6:50:38
Can somebody tell me how the SSLSocket works. Is it nesserry to use a certificate. ?I want my applet to communicate with the server application running on the server. Currently I am using Socket and serversocket classes , I want to change it to SSLSocket. ? How will i do that ...

Help on use IE Certificate with a java application

324 byte By testonpca at 2007-9-27 6:56:49
Hello,I am new in java....I have a certificate that i use with IE to connect to a SSL server.I wanted to use this certificate with a java client application (that i am trying to write).Is there someone who can help me with that ?PS : (excuse my english writing, i am french !!! ...

how to sign Certificate manually ?

675 byte By kamenskya at 2007-9-27 7:00:31
Hi folk!What i have: I generated two keystores with public & private keys. server.private client.private Then i exported public keys intoserver.publicclient.public correspondinglyI need to authenticate the client's certificate (due to the server's keystore) and to create a certificate ...

Problems using HTTPS after installing JSSE1.0.2

1468 byte By rprathia at 2007-9-27 7:01:47
Background: Posted by me in another forum. Here is what I want to do:I am in the process of designing an application, which collects information such as name , age etc. over a web page and sends it in a XML format to a servlet in WebSphere. The servlet then needs to sends this information to an ...

Getting javax.net.ssl.SSLException: Received fatal alert: bad_record_mac

1694 byte By devajyoti_ca at 2007-9-27 7:04:25
I am using a java client to talk with a servlet deployed on weblogic6.1 server using jsse. But i am getting the following error (as pasted below) . Can any one pls help me out?Exception in thread "main" javax.net.ssl.SSLException: Received fatal alert: bad_record_macat ...

How to use IE Certificate to log in...

662 byte By testonpca at 2007-9-27 7:05:09
Hello,I would like to reproduce this IE Behaviour in java :I am connecting to a SSL site. IE pops up a window : Client Authentification with a list of certificate. I choose one. and then i am logged in.I would like to use the same process in Java, and i would like to use the IE Certificate.I ...

Some General Questions about using SSL sockets

786 byte By kaushalmehta1a at 2007-9-27 7:06:38
1 Since both SSL and TLS rely on public-key cryptography, can I use it efficiently for encrypting large amount of data transfer within a network? Or I抣l be better off using secret key.2 If I understand correctly, I can install client/server certificate (public key) along with the software ...

SSL problem with java 1.4 plugin and ApacheSSL (OpenSA build)

3108 byte By annehja at 2007-9-27 7:11:26
Hi, I'm struggeling with a problem that seems to be some new "feature"with java 1.4 ssl.I have an applet running on a site using https. I can't download the class files when using the 1.4 plugin, but itworks fine with 1.3.x and earlier versions.To demonstrate, I have created a simple applet ...

JDK 1.4 Slow SSL Connections

2485 byte By rschuldta at 2007-9-27 7:15:01
Hi, I'm noticing a major performance problem with SSL in JDK 1.4. After running the two test programs below one in JDK1.4 and one with jdk1.3everything else is the same web server,keystores I get the below listed time results. The first connection is always slow as ssl initializes, but with ...

Two way authentication in SSL using JSSE gives SocketException

3946 byte By devajyoti_ca at 2007-9-27 7:28:28
I am doing SSL with a java Client and weblogic6.1 server. In the server i have mentioned the trusted ca file and in the clinet keystore have imported the same trusted ca file as in server and created a client certificate with the same CA(thwate).No when i am doing only server authention SSL , ...

JSSE and jdk1.1.8

285 byte By mnsemenoffa at 2007-9-27 7:32:03
I have an application in java with jdk1.1.8. I need to get jsse for this jdk. Where i can get it.I have to do the program with this jdk, because the program is going to work with Notes and it works only jdk1.1.8.Can someone help me?Thank you very much, Noel

HttpURLConnection in JSSE ?

500 byte By renjithkva at 2007-9-27 7:46:04
I m using following code URL url = new URL(" http://david/servlet/PrimerServlet");HttpURLConnection conn = (HttpURLConnection)url.openConnection();and writing the data to this url connection , So for making this HTTPS what should i do , i changed http to https , so it gave me error ...

HttpsURLConnection between Servlets

373 byte By SchKarina at 2007-9-27 7:53:42
Hi there,I have a very difficult problem! How can I establish a secure HttpsURLConnection from one servlet (on one server) to another (on another servlet) by using JSSE? I am using Tomcat 4.0.2 and JSSE 1.0.2. Tomcat should be configured right, because I can access the server by using ...

Socket to SSLSocket?

278 byte By pszafrana at 2007-9-27 7:59:44
Hello,Is there an easy way to 'convert' Socket to SSLSocket while the connection is in progress? Is it at all possible using JSSE? I am trying to implement AUTH SSL/TLS in Secure FTP server which currently uses so called implicit SSL.Thank you,Paul

help javax.net.ssl.SSLHandshakeException

2337 byte By hamdi_bouhlela at 2007-9-27 8:03:32
hi evry body:help me please I'm despaired.I'm trying to establish a secure communication with SSL.I Have do this step:1. create certificate with Keytool : Keytool -genkey -Key Alg RSA -alias serveur 2. g閚閞ate the certificate request to be signed by Verisign : Keytool -certreq -keystore ...

Is server authentication mandatory for using SSL?

232 byte By kaushalmehta1a at 2007-9-27 8:13:23
Is server authentication mandatory for using SSL sockets, or is there a way around it? In other words, how can I take advantage of SSL sockets without dealing with any kind of certificates? Do I have any other options?

Please kindly help out

820 byte By cia_evolution7a at 2007-9-27 8:18:38
Dear developers,Can you please kindly advise me on how to send a wholefile across the network.For example, I create a socket between a server andclient. I wanted to send a abc.exe file from server toclient. I have try using BufferedReader's readLine()method to read the abc.exe file line by ...

Untrusted server cert chain..........Please help

760 byte By raghukayyara at 2007-9-27 8:23:09
hi all,I am trying to connect to a https server from a java application, but when I tried, as suggested in the JSSE installtion guide, I got the 'untrusted server cert chain' exception.Later, I serached JSSE forum, and came to know that I need to use import the server cert using 'keytool'. ...

How to import a certificate used by a public website

360 byte By jijitha at 2007-9-27 8:28:45
HiI am using JSSE to connect to a HTTPS website. I am getting a SSLException while connecting to site due to the certificate being unkown. main, SEND SSL v3.1 ALERT: fatal, description = certificate_unknownHow can I import the certificate used by the website and make it trusted by my ...

where is the javax.net.ssl package?

157 byte By jonathantauba at 2007-9-27 8:29:26
The javax.net.ssl package is not bundled with the sdk although the documentation refers to it.Why is that and where can I download the package?

1: how to post with ssl 1.3 api

4762 byte By technobuga at 2007-9-27 8:31:43
this is the first part of two problems im facingi have got java 1.3 with the jssssss jars installed. i should keep using java 1.3 and not 1.4, so, whenever possible, i should stick to it1. i need to post a file2. by https3. i need to check the server certificate4. i need to send a certificate ...

securing a non-secure connection

808 byte By rmm2a at 2007-9-27 8:32:21
Hello,We have a need to make a secure socket connection to a system without adding to the number of ports that system is listening on. What we'd like to be able to do is have a C++ program listen for a socket connection, accept a new connection, and then read a message saying to secure the ...

Problem with HttpsURLConnection

5391 byte By pati_50a at 2007-9-27 8:38:20
Hello, I have a problem when I use HttpsURLConnection. I have this code:import java.security.*;import com.sun.net.ssl.*;import javax.net.ssl.*;import javax.net.*;import java.net.*;import java.io.*;import java.util.*;import javax.net.ssl.HttpsURLConnection;public class ConexionPrueba {public ...

SSLSocket Reuse - Problem

6402 byte By alaskova at 2007-9-27 8:46:12
Hi,Here is a problem:My SOAP client ( Win2000, JDK1.3.1_03, JSSE1.0.2 ) issues requests to SOAP server ( IIS server ) over secure connectionThere is no problem when I create SSLSocket, send request, get response, and close secure socket for every client request.[ decrypted request / response ...

JSSE Java Main and HTTPS/SSL Web Server Requesting Client Certificate

6991 byte By oliverta at 2007-9-27 8:47:11
I'm using JDK 1.4 on Solaris and Windows. I have a java program that needs to communicate with several web servers using HTTPS/SSL. Each of these web servers will require that my Java app pass a digital certificate for authentication. I have issued a certificate request to Verisign, acquired a ...

SSL - 128 bit encryption instead of 40 bit?

821 byte By mbs5a at 2007-9-27 8:48:16
Hi, I setup my Tomcat 4.0.3 server to use SSL as directed in a book on servlets that I bought from sun press. Everything works fine, the server starts with SSL support and you can access it with https:, download the cert, etc. I downloaded jsse 1.0.2 jar files and put them into my /jre/lib/ext/ ...

problems with client authentication

661 byte By DucLiema at 2007-9-27 9:01:13
Hi there!I'm trying to build a server-client application with authentication on both sides. I generate my keystores, export and import them with the keytool. If the setNeedClientAuth() method is set to false, everything works fine. But setting it to true, I get a SSLHandshakeException: ...

javax.net.ssl.SSLHandshakeException: Couldn't find trusted certificate

2674 byte By karthikiyera at 2007-9-27 9:03:04
HiI am trying to connect to a secure site using the javax.net.ssl packages that are bundled with jdk 1.4. The server certificate that is installed on the remote server is signed by our own CA (we have implemented our own CA using the iPlanet CMS). I have written code that implements the ...

Setup SSL without loading disk keystore

341 byte By michael.skooga at 2007-9-27 9:10:19
Hi,I'd like to setup an SSL client/server connection between 2 applications. Now... I don't want to load any keystorage from disk when loading the KeyManagers. Has anyone here any quick way of creating a random keystore for the KeyManagerFactory?I'll give this 10 dukes for a good ...

PublicKey from byte[] without using X509?

465 byte By SiebenmannJa at 2007-9-27 9:14:14
Hi All,I need to send my Public Key, using Sockets, from a wirless client which uses C.Once I receive the byte[] ( Public Key ) on the Server side (Java JCE), how can I turn it into a PublicKey without using the X509Spec? I can't use all that "overhead" of most of the XXXSpecs on the Wireless ...

SocketException in client authentification

578 byte By Tschlunza at 2007-9-27 9:31:24
Hello,I try to establish a connection to a Apache SSLServer using client authentification. Apache is configured right as I can authentificate my client cert with InternetExplorer.When I try to connect from a java client I always get ajava.net.SocketException: Cannot send after socket shutdown: ...

Creating privatekey file in weblogic from key stored in keystore?

616 byte By devajyoti_ca at 2007-9-27 9:43:06
Hi all,I have 2 questions :-QUESTION 1)Is there any way by which private key generated by weblogic csr can be stored in a keystore along with the certifcate of the server thereby making a cert chain. I tried the same but continue getting errors.QUESTION 2)Or the other way around how to copy the ...

Couldn't find trusted certificate

250 byte By 25021967a at 2007-9-27 9:47:35
I am running my web application on JRUN 3.1 with a self signed certificate..When I open the URL Connection..I am getting Couldn't find trusted certificate Exception..How to work with self-signed certificate ?Thanks

creating a keystore only for runtime

516 byte By Tschlunza at 2007-9-27 9:50:19
Hello,I want to create a keystore that's not stored on my harddisk, it shall only exists as object for my program.Therefor I read two certificates from disk and imported them into a new created keystore object. That works fine. I can store this keystore on the disk but that's not what I want. ...