You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I receive a "Security Error" after choosing Load iClass and Secure Session keys Example. I've tried default keys for EncKey and MacKey (all "FF" or all "00"), but they don't work.
Here' s the SS I've received.
I read the OMNIKEY® 5022 SOFTWARE DEVELOPER GUIDE but I've not been able to fix this issue.
Questions:
What are the correct keys/steps for establishing the secure session?
I added my comments in the code snippet as well.
publicclassLoadKeyToPcScContainerExample{privateconstbyteKeyRelatedAccessRight=(byte)SessionAccessKeyType.UserAdminCipherKey;// What are the default values for these keysprivateconststringEncKey="";privateconststringMacKey="";privatevoidLoadKeyCommand(ISecureChannelsession,stringdescription,bytekeySlot,LoadKeyCommand.KeyTypekeyType,LoadKeyCommand.Persistencepersistence,LoadKeyCommand.Transmissiontransmission,LoadKeyCommand.KeyLengthkeyLength,stringkey)
...
public void Run(string readerName){varreader=newSmartCardReader(readerName);varsecureChannel=newReaders.SecureSession.SecureChannel(reader);try{ConsoleWriter.Instance.PrintSplitter();ConsoleWriter.Instance.PrintTask("Establishing SAM Secure Session");if(!IsValidSessionKeyFormat(EncKey)||!IsValidSessionKeyFormat(MacKey))thrownewArgumentException("Secure session key format is incorrect, correct format of session key string is 32 character long hexadecimal string without hex specifier. Example: \"00000000000000000000000000000000\"");// I expect functions here to load cipher key and mac key to reader before establishing session.// This part also confuses me.secureChannel.Establish(EncKey+MacKey,KeyRelatedAccessRight);
...
The text was updated successfully, but these errors were encountered:
Reader: HID OMNIKEY 5022
Card: MIFARE Plus 2k "S" (Other)
Issue Description:
I'm using the ExampleWithiClass.cs class to connect to a MIFARE Plus 2k "S" card.
Here's my card diagnostic.
After running the console program, I follow these steps for a default card.
I receive a "Security Error" after choosing
Load iClass and Secure Session keys Example
. I've tried default keys for EncKey and MacKey (all "FF" or all "00"), but they don't work.Here' s the SS I've received.
I read the
OMNIKEY® 5022 SOFTWARE DEVELOPER GUIDE
but I've not been able to fix this issue.Questions:
What are the correct keys/steps for establishing the secure session?
I added my comments in the code snippet as well.
The text was updated successfully, but these errors were encountered: