• Post Reply Bookmark Topic Watch Topic
  • New Topic

URL = new URL("https://secure_server???  RSS feed

 
Sonny Pondrom
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My code runs with local files (C:my_file.txt) . I had to move them to a secure server( https://my_secure_server/) . I have never opened files on another server. I read where SDK 1.4 uses Java Secure Server to handle https protocol.

I don't want the user to be prompted for a passphrase, so I would like to use a concurent Pageant session for the authorization. Has anyone done something like this?
 
Sonny Pondrom
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer
 
Sonny Pondrom
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I run the code in the answer above, I get no answer. The session times out.

I don't see where to put in my private key, a secure passphrase or tell what kind of encryption I want to use.
[ July 15, 2004: Message edited by: Sonny Pondrom ]
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use javax.net.ssl.HttpsUrlConnection.setSSLSocketFactory(SSLSocketFactory)

You will need a SSLContext to create it; and a KeyManager, TrustManager and SecureRandom to create a SSLContext.
All is explained in the JSSE Reference Guide
 
Sonny Pondrom
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!