This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Applets and the fly likes Smart Card Problem in Java with server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "Smart Card Problem in Java with server" Watch "Smart Card Problem in Java with server" New topic
Author

Smart Card Problem in Java with server

Afsun Khammadli
Greenhorn

Joined: Nov 19, 2013
Posts: 5
Hi everybody.I am using smart card authentication in my web application.Everything is ok on my localhost.I can login with password.When I deployed application in server.Server does not read data from smart card but when I connect with remote desktop I can read data from smart card.I do not know the reason.Any idea?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
The smart card reader is a physical device attached to your local machine? How does it interact with the web app?


Ping & DNS - my free Android networking tools app
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

Welcome to the Ranch.

Based on the information you have provided, looks like you need to move the 'card reading logic" from the server to the client. It would be better if you TellTheDetails


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Afsun Khammadli
Greenhorn

Joined: Nov 19, 2013
Posts: 5
Yes smart card is physical device.
Afsun Khammadli
Greenhorn

Joined: Nov 19, 2013
Posts: 5
When I open application in my computer's browser which is deployed on server.If also I connected with RDP to this server which my application deployed everything is ok.When I close RDP I get exception.Message of exception is "Token has been removed".
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
And the device is connected to your local machine, not the server? Again, how does it interact with the web app?
Afsun Khammadli
Greenhorn

Joined: Nov 19, 2013
Posts: 5
Yes smart card connect to my local machine but my app is in server.Problem is that I think the server did not know smart card connected or not.But when remote desktop connected to server server know smart card is ok.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
It sounds like this is the crucial question:
Again, how does it interact with the web app?

What should be interacting with the card reader is the web page, not the web app.
Afsun Khammadli
Greenhorn

Joined: Nov 19, 2013
Posts: 5


This is my method which I pass password and it return cert as String
 
GeeCON Prague 2014
 
subject: Smart Card Problem in Java with server