Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
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 ]
 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic