This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 41587
    
  54
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: 10268
    
    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: 41587
    
  54
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: 41587
    
  54
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Smart Card Problem in Java with server