Win a copy of Rust Web Development this week in the Other Languages 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

How to access web site with certificate

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greenhorn here:

I need to log into a website with both a user name, password, and a certificate.
I have the username, password, and certificate information (using firebug).
I have the URL syntax to transmit the username and password.
What I can't figure out is which object is best used to transmit the certificate information when I connect to the site.

I appreciate your assistance. Thank you in advance.
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Paul,

Are you comparing the certificate information with the values stored in the database ?
 
Paul Werger
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ujjwal for responding.
I found the certificate information using Firebug.
After some experimentation, it appears that the website doesn't appear to require a specific certificate.
It appears that any machine can use any certificate to log into this site.
The site just needs a certificate.
My certificate is stored in my certificate folder on the IE8 explorer.
Is this what you are asking for?
 
Sheriff
Posts: 67618
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the servlet dimension to this question?
 
Paul Werger
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bear,

Thanks for your question.

I am using a servlet to connect to the web site through Apache Tomcat.

The intention with the servlet is to screen scrape the table data from the web site into a simple comma separated value (csv) file.

 
Bear Bibeault
Sheriff
Posts: 67618
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Werger wrote:I am using a servlet to connect to the web site through Apache Tomcat.


How?
 
Paul Werger
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bear,

I'm running Tomcat as a server on the computer of the person running this app. (I'm building in Eclipse).

Am I understanding your question?
 
Bear Bibeault
Sheriff
Posts: 67618
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nope. How are you trying to access an SSL-protected site (I assume that's what you mean by "site with certificate") from your servlet?
 
Paul Werger
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bear,

Here is my code:



I can't figure out how to pass the certicate data.
 
Bear Bibeault
Sheriff
Posts: 67618
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is nothing built into the Servlet Specification for this, so I'm going to move this to a more appropriate forum.
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The servlet technology by design already supports https (SSL). However, the way this works is not through the servlet technology but through the Web Server. The web server controls whether information is done securely (https) versus non-securely (http).


 
Paul Werger
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your reply, Steve. Unfortunately, I'm not understanding how I need to program Tomcat to pass on the certificate. If you could give me an example, I would appreciate it.

 
Steve James
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not paid here to respond to you immediately .

Paul ,

As a developer you would never worry regarding certificates . This is the work done by Admin members.

In order to implement SSL, a web server must have an associated certificate for each external interface (IP address) that accepts secure connections.

These below sites shows what you asked for .

[url]http://www.digicert.com/ssl-certificate-installation-tomcat.htm
[/url]
[url]http://www.geocerts.com/install/tomcat
[/url]
 
Paul Werger
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, so I suppose you have a right to sleep. I took the same option.

Thank you for these links. On early perusal these instructions look to help me. It'll take some study.

I really appreciate this.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic