• 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:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

SSL authentication problem

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello.
I'm having problem with connecting to site by ssl.
When I want to connect I'm getting error

Http Status: 401
Full authentication is required to access this resource
Unauthorized


Here it is my full code and my question why I'm getting this error what I doing wrong?

 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should ask the site admin of "uccxprem.myciscosite.com" why it's rejecting your request as unuathorized - there could be various reasons for that.

And I very much hope the site doesn't really require you to send the password as part of the URL - because that is sent in cleartext even if SSL is used.
 
ernest molik
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:You should ask the site admin of "uccxprem.myciscosite.com" why it's rejecting your request as unuathorized - there could be various reasons for that.

And I very much hope the site doesn't really require you to send the password as part of the URL - because that is sent in cleartext even if SSL is used.



This url
https://uccxprem.myciscosite.com:8443/adminapi/campaign
is in fact CISCO Web Services and I can call it in tool SoapUI and its working fine.
In SoapUI I setting user login and password but I don't have to point "cisco.cer".
Why I can do this in my java code?
 
Ulf Dittmer
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're using separate username/password fields in SoapUI, then it's most likely using those for Basic Authentication, and not appending them to the URL. Here's how to use Basic Auth through Java code: https://coderanch.com/how-to/java/AppletsFaq#authentication (works for all Java client code, not just applets).
 
ernest molik
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:If you're using separate username/password fields in SoapUI, then it's most likely using those for Basic Authentication, and not appending them to the URL. Here's how to use Basic Auth through Java code: https://coderanch.com/how-to/java/AppletsFaq#authentication (works for all Java client code, not just applets).


Now it's working.
Thanks for your help.
 
I guess I've been abducted by space aliens. So unprofessional. They tried to probe me with this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic