aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 39544
    
  27
The smart card reader is a physical device attached to your local machine? How does it interact with the web app?


Ping & DNS - updated with new look and Ping home screen widget
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

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: 39544
    
  27
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: 39544
    
  27
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
 
Similar Threads
java application and IE
Access usb smart card
smart card reading software ?
sql database on smartcards.
smart card integration on jsp page