Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SSL authentication problem  RSS feed

 
ernest molik
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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?

 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • 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
  • 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: 42972
73
  • Mark post as helpful
  • send pies
  • 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: http://www.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
  • 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: http://www.coderanch.com/how-to/java/AppletsFaq#authentication (works for all Java client code, not just applets).

Now it's working.
Thanks for your help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!