smartcard

iText signing PDF using external signature with smart card

自作多情 提交于 2019-12-12 03:55:56
问题 I've been toying with iTextSharp 5.5.7 for a while and can't find the right way to make a valid digital signature for PDF from Smart Card - Adobe Reader always says its signed by and unknown and can't decode signatures' DER data. I've looked at MakeSignature.cs code for reference and what is does: Stream data = signatureAppearance.GetRangeStream(); // gets the first hash byte[] hash = DigestAlgorithms.Digest(data, hashAlgorithm); // gets the second hash or is it not a hash at all ? byte[] sh

What is Max and Min size of Applet in java card

对着背影说爱祢 提交于 2019-12-12 02:52:34
问题 I am working on java card and i want to know: what is max and min size of an applet in java card and on which parameter it depends? How many applet we can install on smart card? I am using: smart card type = contact card using java card 2.2.2 with jcop using apdu 回答1: There is no official size limit (above the ones Robert already posted). Cards may have their own limits depending on available memory - but there is no fixed value for that; depends on what has already been installed, how their

javax.smartcardio SCARD_SHARE_SHARED and SLEE4442 delay

自古美人都是妖i 提交于 2019-12-11 19:48:52
问题 With "javax.smartcardio.CardTerminal" I can't to connect smartcard with SCARD_SHARE_SHARED parameter...The method to connect has not that parameter... public abstract Card connect(String protocol) throws CardException Establishes a connection to the card. If a connection has previously established the specified protocol, this method returns the same Card object as the previous call. Parameters: protocol - the protocol to use ("T=0", "T=1", or "T=CL"), or " " to connect using any available

ElGamal on SmartCards

…衆ロ難τιáo~ 提交于 2019-12-11 11:09:30
问题 I was wondering if a smartcard/Javacard is able to perform ElGamal cryptography? Is it implemented anywhere, i.e. is there an API that can be used for such purposes? Cheers! 回答1: The SmartMX family of NXP supports ElGamal, it's in their public data sheets. I don't think I've seen in mentioned in any Java Card implementation though, it's not in the standard so if present, it must be in vendor supplied libs. Probably any Smart Card with a Montgomery multiplier will be able to support ElGamal

adding extensions to a certificate request ( password-challenge ) with C# and CertENrollLib

别说谁变了你拦得住时间么 提交于 2019-12-11 07:58:22
问题 I have to add extensions to a certificate request ( CSR ) in such a way that I respect a given structure. Namely this one On the left is the structure I must respect for the chalenge password, on the right the structure I get when I simply generate a OID object from the challenge-password OID value, then embedding all this directly into the extension list of the PKCS10 request: CObjectId cp_oid = new CObjectId(); // OID 1.2.840.113549.1.9.7 // cp_oid.InitializeFromName(CERTENROLL_OBJECTID.XCN

gRpc with TLS Client Authentication using SunPKCS11 in netty fails

∥☆過路亽.° 提交于 2019-12-11 06:27:19
问题 I have some java 8 application, using gRPC for network communication. To secure that, I use TLS with client authentication. Now, I try to switch from software keys to a smart card, holding the private key and certificate (chain) for the client authentication. My code to make netty inside gRPC's use the sun pkcs#11 provider looks as follows: static NettyChannelBuilder getChannel(final String host, final int port, final File trustAnchorsFile) throws Exception{ String configName = "pkcs11.cfg";

C# Decrypt emails by reading keys on smart card

大城市里の小女人 提交于 2019-12-11 06:06:30
问题 One of my client needs a tool to decrypt their emails. They are using smart card for encryption/decryption. As of now they are using a tool which asks them to enter their PUBLIC KEY. After giving a valid PUBLIC KEY, combination of PUBLIC and PRIVATE KEYS on SMART CARD will help them to decrypt their emails. We are working on a tool which could be a windows service(which runs in the background) and decrypt all the emails with our prompting the user for public key again and again. We are using

Command APDU returning 6985 (Conditions of use not satisfied) in result

杀马特。学长 韩版系。学妹 提交于 2019-12-11 04:14:20
问题 I am working on reading a smart card in Java. When I execute the following code below, the card returns 6985 (Conditions of use not satisfied) as a result. TerminalFactory factory = TerminalFactory.getDefault(); List<CardTerminal> terminals = factory.terminals().list(); System.out.println("Terminals: " + terminals); if (terminals != null && !terminals.isEmpty()) { // Use the first terminal CardTerminal terminal = terminals.get(0); // Connect with the card Card card = terminal.connect("*");

Exclusive access established by another Thread Java smartcardio

帅比萌擦擦* 提交于 2019-12-11 03:08:37
问题 All, I have appreciated many helpful answers on this site but I have found a need to post my first question (if you notice anything to be improved in my post let me know). I have a modest sized Java program with GUI that is acting as a "middleman" and controller. On one end of the information flow it sends and receives data via an HTTP server. On the other it is interacting with an API where data is ultimately exchanging with a SmartCard. In the "middle" is the GUI, logging, and some other

windows 8 disable smartcard plug and play

坚强是说给别人听的谎言 提交于 2019-12-11 03:04:35
问题 I have a delay problem reading my smartcard and I think that is possible to be a problem with Smartcard Plug and Play service. I googled about this and found that is possible to disable with gpedit.msc ..the problem is that gpedit.msc is not accesible with Windows 8 (non professional). In windows 7 there is a registry called EnableScPnP that works, but I didn't found this at Win 8. How can I disable Smartcard Plug and Play with win8? 回答1: Try setting the same EnableScPnp registry key (see