[Question!!] How to satisfied security status after External Auth. ??

Situation :
I want to do Post Issuance functions on card , the card has personalized , and card
status is been set to 'Secured'.
Card Status :
The Card is in secured status when has perso. from card manufacturer.
First : External auth.
External auth. is OK and response no error.
(APDU 's P1 set to '0x03')
Second: Try to delete existd applet(ex:VSDC applet) from card.
According to the Card Spec. , APDUs after secured channel has opened must
add MAC and encipher , so use first step 's C-MAC value as initial value to caculate
new MAC and do encipher , then send command to IC Card , it return SW in '0x6982'
Questions :
Why it return 'Security level not satisfied' after pass the card ext. auth. ?
Do I get error in caculate MAC or do Encipher the command ?
If really got the error in my MAC or cipher step , IC Card check it and return '6982' ,
is it correct ?
APDU results are as follows:
KMC Key = "FDA1DAF3CC95D48C7B891DCA1F7C5769"(Hex dump)
16 bytes 2Des Key
Detect Reader :
0 - [ CASTLES EZ100PU 1 ]
Send APDU >> 00A4040007A0000000030000
Response APDU << 6F198408A000000003000000A50D9F6E0640512179100E9F6501FF9000
Send APDU >> 80CA00CF00
Response APDU << 00CF0A000049381701100101629000
Send APDU >> 80500000080000000000000000
Response APDU << 00004938170110010162010152BD13F4BB10ECF64875DAFF86BF89299000
-- External Authenticate
Plantext APDU : 848203000807556D1359960AD3
IV : 0000000000000000
C-MAC : 766F793916F59ABD
APDU After C-MAC : 848203001007556D1359960AD3766F793916F59ABD
Send APDU >> 848203001007556D1359960AD3766F793916F59ABD
Response APDU << 9000
-- Delete Instance AID
Plantext APDU : 84E40000094F07A0000000031010
IV : 766F793916F59ABD
C-MAC : 21E59ADBCE506D20
APDU After C-MAC : 84E40000114F07A000000003101021E59ADBCE506D20
APDU After Cipher : 84E40000180CC8DE40AB34AC8C66285D6A2B0B4C5421E59ADBCE506D20
Send APDU >> 84E40000180CC8DE40AB34AC8C66285D6A2B0B4C5421E59ADBCE506D20
Response APDU << 6982
Delete Instance AID fail ! (SW:6982)

hi! Bennel,
what kind of your card?

Similar Messages

  • Question: How do I retrieve values after creating an autofilter.

    So the question is sort of simple but my code is below, this is my first time really running in VBA but it isn't so far all to dissimilar to LotusScript which I am a bit more knowledgeable in. What I am trying to do is retrieve values from the filtered information,
    or more simply, I am trying to retrieve values from two cells in the spreadsheet that I want move together.
    As noted below one of them is a countries field which simply concatenates the country string with the duplicates with the same first column (A#) fields. 
    Example 123 .. UK
                  123 .. US
                  123 .. CA
    The output stored in countries would be UK,US,CA and posted to sheet3.
    Sub proFirst()
    Dim wSheet As Worksheet
    Dim columnCount As Integer
    Dim rowCount As Long
    Dim testVar As Long
    Dim coll As New Collection, a
    Dim Assignee() As String
    Dim tmpList() As String
    Dim newVar As Variant
    Dim dict As Object
    Const rowDataBegin = 2
    Dim count As Long
    rowCount = Sheets("Sheet1").UsedRange.Rows.count
    columnCount = Sheets("Sheet1").UsedRange.Columns.count
    '** This Cleans up the filtering to ensure all data is viewable before we begin **
    Sheets("Sheet1").Activate
    If (ActiveSheet.AutoFilterMode And ActiveSheet.FilterMode) Or ActiveSheet.FilterMode Then
      ActiveSheet.ShowAllData
    End If
    Sheets("Sheet3").Activate
    If (ActiveSheet.AutoFilterMode And ActiveSheet.FilterMode) Or ActiveSheet.FilterMode Then
      ActiveSheet.ShowAllData
    End If
    '** This sets a filter to filter by column O which is designated as Submitted Date  **
    Sheets("Sheet1").Columns("A:S").AutoFilter Field:=15, Criteria1:="<>"
    '** This block copuies and pastes the values we need for the final report however   **
    '** this is not a permenent viewable format for the report, a recut may be required **
    Application.CutCopyMode = False
    rowCount = Sheets("Sheet1").UsedRange.Rows.count
    Sheets("Sheet1").Range("A1:D" & rowCount).Copy Sheets("Sheet3").Range("A1:D" & rowCount)
    Application.CutCopyMode = False
    Sheets("Sheet1").Range("J1:J" & rowCount).Copy Sheets("Sheet3").Range("H1:H" & rowCount)
    Application.CutCopyMode = False
    Sheets("Sheet1").Range("O1:O" & rowCount).Copy Sheets("Sheet3").Range("I1:I" & rowCount)
    Application.CutCopyMode = False
    'loops through the first column and acquires all of the data and generates as string array
    rowCount = Sheets("Sheet3").UsedRange.Rows.count
    columnCount = Sheets("Sheet3").UsedRange.Columns.count
    ReDim Assignee(rowCount)
    ReDim tmpList(rowCount) 'helper variant to make it smoother for recall of lines
    For i = rowDataBegin To rowCount
        Assignee(i - rowDataBegin) = CStr(Sheets("Sheet3").Cells(i, 1).Value)
        tmpList(i - rowDataBegin) = rowCount
    Next i
    Set dict = CreateObject("Scripting.Dictionary")
    For i = LBound(Assignee) To UBound(Assignee)
       If dict.exists(Assignee(i)) Then
            dict.Item(Assignee(i)) = dict.Item(Assignee(i)) + 1
             Else
            dict.Add Assignee(i), 1
        End If
       Next i
    Sheets("Sheet3").Range("$A$1:$I$" + CStr(rowCount)).RemoveDuplicates Columns:=1, Header:=xlYes
    rowCount = 2
    Application.Workbooks(1).Worksheets("Sheet3").Activate
    '** Header values Change as needed                                                             
    Sheets("Sheet3").Cells(1, 5).Value = "Completed Global Questionnaire? (Yes or No)"
    Sheets("Sheet3").Cells(1, 6).Value = "Number of Countries"
    Sheets("Sheet3").Cells(1, 7).Value = "Name of Countries Submitted"
    For Each v In dict.keys
    If dict.Item(v) > 0 And v <> "" Then
    Sheets("Sheet3").Cells(rowCount, 6).Value = dict.Item(v)
    rowCount = rowCount + 1
    End If
    Next v
    Sheets("Sheet3").Columns("A:I").AutoFilter Field:=6, Criteria1:=">1", _
            Operator:=xlAnd
    '** BEGIN TESTING AREA
    '** Stage 2 Test Complete - able to retrieve a list of how many rows are in use
    '** Stage 3 test - retrieve countries
    Sheets("Sheet1").Activate
    count = 2
    For Each v In dict.keys
    countries = ""
    rowCount = 0
    If dict.Item(v) > 1 Then
        With ActiveSheet
           Set rnData = .UsedRange
            With rnData
                .AutoFilter Field:=1, Criteria1:=v
               .Select
                'xlCellTypeVisible = 12
                 For Each rngArea In .SpecialCells(xlCellTypeVisible).Areas
                 tmp = .SpecialCells(xlCellTypeVisible).Rows
                Next
                For Z = 2 To rowCount
                    If countries = "" Then
                        countries = .Range("I" & Z).Value
                    Else
                        countries = countries & ", " & .Range("I" & Z).Value
                    End If
                Next Z
            End With
        End With
         Sheets("Sheet3").Cells(count, 7).Value = countries
    End If
    count = count + 1
    Next v
    '**  Testing block              **
    Sheets("Sheet3").Columns("A:I").AutoFit
    MsgBox "End loop"
                                                

    The code below is only semi-tested but it should give you the idea of how to loop through the visible data of an AutoFiltered Range. You can't use code like "For r = 2 to Rows.Count" because the code stops after the first non contiguous row. However,
    you can use For Each loop to loop through the rows and get the row number from there.
    An explanation of the code to set rngVisible. (Note that a space and underscore at the end of a line is a line break in an otherwise single line of code.)
    With .AutoFilter.Range   This is the entire AutoFilter Range (Includes column headers, visible and non visible rows)
     .Offset(1, 0)     Moves down one row off the column headers but now includes an additional row at the bottom below the data. (Still includes visible and non visible rows)
     .Resize(.Rows.Count - 1, .Columns.Count)     Removes the additional row due to Offset (Still includes visible and non visible rows)
    .SpecialCells(xlCellTypeVisible)      Only include the visible rows.
        Sheets("Sheet1").Activate
        For Each v In dict.keys
            countries = ""
            If dict.Item(v) > 1 Then
                With ActiveSheet
                    Set rnData = .UsedRange
                    With rnData
                        .AutoFilter Field:=1, Criteria1:=v
                    End With
                    'Note that AutoFilter.Range is an inbuilt object variable _
                    for the entire range covered by the AutoFilter
                    With .AutoFilter.Range
                        'Following tests if any rows (other than column header) are visible _
                        in the AutoFilter.Range.  If > 1 then more than just column headers. _
                        Attempting to set the rngVisible will error if not at least one row _
                        of visible data.
                        If .Columns(1).SpecialCells(xlCellTypeVisible).Cells.Count > 1 Then
                            'Assign the visible data to a range variable
                            Set rngVisible = .Offset(1, 0) _
                                       .Resize(.Rows.Count - 1, .Columns.Count) _
                                       .SpecialCells(xlCellTypeVisible)
                        Else
                            MsgBox "No visible data. Procesing terminated."
                            'Left for you to handle what you want to do if the _
                             filter does not exist in the data and no visible rows present
                            Exit Sub
                        End If
                    End With
                    'Loop through the rows of rngVisible
                    'and get the row numbers
                    For Each rngRow In rngVisible.Rows
                        Z = rngRow.Row
                        If countries = "" Then
                           countries = .Range("I" & Z).Value
                        Else
                           countries = countries & ", " & .Range("I" & Z).Value
                        End If
                    Next rngRow
                End With
            End If
        Next v
    Regards, OssieMac

  • Updating task status after external system calls UpdateOrder WS in OSM 7

    Hi,
    I have this query related to updateOrder WS. if the external system directly calls the OSM updateOrder web service, then how can OSM know about it? As I understand, updateOrder does not change the status of the task. Do we need to add another OSM element like notification event which regularly polls some data element or any message is posted to OSM internal queue?
    Also, in such scenario, should the design be that we write some custom web service which then calls the OSM update web service? (assuming JMS queue cannot be used).
    Regards,
    Ricky

    After trying to import photos from a camera, I discovered that iPhoto was also rendered useless by the 10.7.5 update.

  • How to kill secure erase after turning on File Vault?

    I turned on file vault on my MacBook with OS 10.6.4 and selected the secure erase option for the resulting empty space. The File Vault encryption process completed fairly quickly, but the secure erase has carried on for 48 hours and I'm just at 26% complete as per the security pane of System Preferences.
    I'd like to stop the secure erase process. It seems like overkill, and as this computer (and the hard disk) are 4+ years old, I'm thinking the wear and tear on the drive is more than is necessary.
    I've tried killing the secure erase process ("sudo kill -9 ...") but the process re-spawns.
    My question: is there a safe way to stop the secure erase process after turning on File Vault? (I am fully backed up with Time Machine if that makes any difference.)

    Ah-HA! OK, I've fixed the problem the right way now instead of the ugly method of renaming secure_erase, which was admittedly a hack until I had more time to look at things.
    The queue for secure_erase is stored in /var/db/fvsecureerase.jobs/ - you need to cd into that directory and look for the files there, and remove them. By deleting the numbered job, you will remove it from the secure_erase queue.
    HOWEVER, please look at the files first and then manually delete the file path listed, otherwise you will leave those to-be-destroyed files UNDELETED. This is probably NOT what you want. What happens is that secure_erase moves the "original" files into a new directory (in my case the file was named /Users/jtodd.10307331336706142097) and then secure_erase does it's magic on that directory and wipes out each file in a tedious, secure way. If you made a mistake and don't want to wait the 20 days for it to finish the tedious method, you can just "rm" it the old fashioned way. I typically pipe "yes" into the "rm -R" command since there are a lot of strange permissions things that rm asks about and I would otherwise spend an hour hitting "y" on every file about which it uncertain - hooray for UNIX pipes! For instance, this is a what I did (again, as root):
    sh-3.2# cd /var/db/fvsecureerase.jobs
    sh-3.2# ls -lsa
    total 8
    0 drwx------ 3 root admin 102 Nov 12 11:44 .
    0 drwxr-xr-x 51 root wheel 1734 Nov 12 11:44 ..
    8 -rw-r--r--@ 1 root admin 33 Nov 10 13:53 501
    sh-3.2# cat 501
    /Users/jtodd.10307331336706142097
    sh-3.2# rm 501
    sh-3.2# yes|rm -R /Users/jtodd.10307331336706142097

  • How to get things working after External Hard Drive Died

    I had all of my iMovie videos (about 800 GB) on an external drive that died.  Fortunately it was backed up to another external drive using Time Machine.  I bought a new drive and couldn't figure out how to restore using Time Machine so i transfered the files manually using Finder.  The transfer was successful, but now the movies do not appear in the iMovie event library.  How do I get iMovie to work with the new external hard drive.  The drive itself appears in the Event Library window, but none of the movies do.  Then I also need to figure out how to back up the movies again to Time Machine.  When it looks to do it now, it wants to duplicate the moveis which exceeds the Time Machine hard drive capacity (2TB).  Thanks!!

    For you to see them in iMovie, the Events need to be in a folder called iMovie Events. This folder must be at the top level of the drive.
    Move it there and restart iMovie, and you should see them.

  • How to reset security question, how to reset security question

    how to reset my security question

    Apple ID security issues -
    Call Apple Care for your country and ask for the Account Security Team. They can assist you with your issue.
    http://support.apple.com/kb/HT5699

  • OEM job : How to force job status after a PLSQL job run?

    Hello,
    We are under 10gR2, using OEM with a lot of jobs that call PLSQL procedures.
    For some obscur reason, when a PLSQL procedure fails, the job status is always "Succeeded". This is not useful at all !!!
    So, as we don't kow why, I was thinking about setting the return job status in the PLSQL procedure itself ...
    Is it possible ?
    How can I do that ?
    I hope that my explanation is clear.
    Thanks for your help,
    Olivier

    Hi Olivier
    I dont understant the first time.
    Yes its very stange that the job appear like suceed and the PL procedure had failed.
    If you want more control to this situation, in my situation i had too much problems with jobs that executing SQL scripts.
    Then i change the SQL SCRIPT JOB for OS SCRIPTS JOB and in this scripts i can controlling the execution
    This an example
    Job Statistics.sh
    Gric Control --> Job --> Operating System Script
    /home/oracle/script.sh --> In the parameter line of the job
    # the script.sh
    ORACLE_HOME=/oracle/10.2
    ORACLE_SID=PROD
    $ORACLE_HOME/bin/sqlplus "/ as sysdba" << EOF
    execute dbms_mview.refresh('MVIEW_SALES','f');
    EOF
    res=$?
    if [ ${res -ne 0 }
    then
    mailx -s THE_JOB_HAD_ERRORS [email protected]
    else
    mailx -s ok_execution [email protected]
    fi
    In my enviroment was a solution to control the exact execution of the jobs
    Regards

  • How to reset security questions after to many attempts and support is closed

    how to reset security question after to many attemptd and support is closed

    Unless you're desperate, wait until you can reach Apple's Account Security team.
    (118978)

  • After i redeemed my itunes gift card, i can't purchase anything in the app store or itunes store. When i press purchase, the security questions page will pop up and after you answered all questions it will force restart my iphone. Can anyone help me?

    After i redeemed my itunes gift card, i can't purchase anything in the app store or itunes store. When i press purchase, the security questions page will pop up and after you answered all questions it will force restart my iphone. Can anyone help me?

    Hi godfest,
    Welcome to the Support Communities!
    The articles below will get you connected with the iTunes Store Support.  These folks can review your account with you:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/HT1933?viewlocale=en_US
    iTunes Store & Mac App Store: Seeing your purchase history and order numbers
    http://support.apple.com/kb/ht2727
    Cheers,
    - Judy

  • I have forgotten the answers to my security questions, how do I retrieve them?

    HELP... I have forgotten my answers to my security questions, how do I retrieve them?

    Hi,
    Since I originally posted that info APple have changed the page.
    There are less Menu items but in Password and Security I get shown the Security Questions.
    However rather then showing me the possible response it now want me to fill them in.
    It also shows  my recovery email (Shown in a partial format but enough detail so I know which Account it is) if I have forgotten the answers to the Questions.
    IF I fill in the Secruity Questions answers then the pages to what I had previously described.
    I can edit the recovery email address, change the Questions and Answers and even change my date of birth.
    7:20 PM      Friday; November 30, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • HT201269 When I try to setup my new iPad air, I go through all the steps for the iCloud sign-in and choosing security questions and what not. But after I hit the agree to the terms and conditions... It says Apple ID could not be created because of a serve

    When I try to setup my new iPad air, I go through all the steps for the iCloud sign-in and choosing security questions and what not. But after I hit the agree to the terms and conditions... It says Apple ID could not be created because of a server error. Have no clue what to do... I've restarted the iPad and get the same message. But my internet works just fine.

    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings

  • HT1420 i forgot my answers to my security questions, how do i setup new questions and answers?

    I have forgotten my answers to my security questions, how do i setup new security questions and answers?

    Welcome to the Apple Community.
    Start here (change country if necessary) and navigate to 'Password and Security', reset your security questions using the link provided, you will receive an email to your rescue address, use the link in the email and reset your security questions.
    If that doesn't help, you don't receive a reset email or you don't have a rescue address, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

  • HT201363 Good evening ...  I have an account in appel and I have purchased a card  But I can not buy applications because the applications you want to push it under the answers to security questions and I forgot the answers to these questions  How can I c

    Good evening ...
    I have an account in appel and I have purchased a card
    But I can not buy applications because the applications you want to push it under the answers to security questions and I forgot the answers to these questions
    How can I change my answers to security questions??

    Hello, yazanalmasri0.
    If you need to reset your security questions and have a rescue email attached to your Apple ID, this article will help you with this issue.
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    If you are still unable to reset your security questions or do not have a rescue email associated with your account, you will need to reach out to our account security team. 
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Cheers,
    Jason H.

  • How to change security question

    how to change security question in apple id. I forgot my answers. Please help

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (124195)

  • I forget my security question,how to get it back?

    i forget my security question,how to get it back?

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (108190)

Maybe you are looking for