Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 527653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:54:21+00:00 2026-05-13T08:54:21+00:00

I can’t understand general scheme using certificates. For example: I have account on the

  • 0

I can’t understand general scheme using certificates.
For example: I have account on the some website. I have name and password. What should I do to login to this site? – I should open _https://website:443/login and fill out fields, and if all is ok, I’ll obtain admittance.

Now, I would like to perform these steps programmatically usin java + httpclient(apache).
I’ve written:

client = new DefaultHttpClient();

client.getParams().setParameter(ClientPNames.COOKIE_POLICY, 
                                CookiePolicy.BEST_MATCH);
client.setCookieStore(new BasicCookieStore());
client.getCredentialsProvider()
      .setCredentials(new AuthScope(ADDRESS, new Integer(PORT)),
                      new UsernamePasswordCredentials(USERNAME, USERPWD));

And I should create trustStore with server’s certificate:

System.setProperty("javax.net.ssl.trustStore", "./KeyStore/myca");

where ‘myca’ were made with ‘InstallCert.java’ – Sun’s product.

But I would like to perform all this steps programmatically, like Browser(FFox, or Opera) import server’s certificate…User just want to use only my application, not a set of additional application.

How can I do perform it?

And now, the main problem: why do servers not require user’s certificate? And how do I can use my own certificate to authenticate? (If I have user’s certificate I will not need ‘name”password’ to login to server?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:54:21+00:00Added an answer on May 13, 2026 at 8:54 am

    why do servers not require user’s
    certificate?

    Servers do not require user certificates, because most users don’t have one, don’t now what it is and how to get one. And even if they would, such a certificate is either difficult or expensive to obtain, so many user won’t get one.

    So any server requiring a client certificate would reduce the number of users probably by a factor of 1000. Most server owners don’t want that.

    If I have user’s certificate I will
    not need ‘name”password’ to login to
    server?

    Depends on your requirements. Requiring a certificate + username/password would be considered a two factor authentication, which is a stronger form of protection, then just requiring one factor. It would get even stronger by asking for some kind of biometric identification.

    How can I do perform it?

    Perform exactly what? You are talking about doing things “programmatically”, but you already present code …?

    And how do I can use my own certificate to authenticate?

    This should be done in the configuration of your server. You need to setup a trust store containing the trustet root certificates + require client authenticatication in the ssl configuration. e.g search here for clientauth.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 322k
  • Answers 322k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use a TextBox with these settings instead to make it… May 14, 2026 at 12:50 am
  • Editorial Team
    Editorial Team added an answer Your form_for @invite_request is trying to figure out where the… May 14, 2026 at 12:50 am
  • Editorial Team
    Editorial Team added an answer i think the command you are searching for is bundle… May 14, 2026 at 12:50 am

Related Questions

I want use html5's new tag to play a wav file (currently only supported
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
In order to apply a triggered animation to all ToolTip s in my app,
I've got a string that has curly quotes in it. I'd like to replace
I am currently running into a problem where an element is coming back from

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.