title: How to set and update ICC card PIN with APDU command
body: <p>I have a contact smartcard.(I dont know about what kind of applet installed on it. But I can authenticate, read, update and verify pin with standart APDU commands.) And I want to do some changes on PIN.
  So, my question is:</p>
  
  <ul>
  <li>If card has PIN, then update the PIN with new value. If card dont have any PIN, then set PIN. </li>
  </ul>
  
  <p>Standart update command is not working on PIN file. I am getting 6982 response message from ICC card. So, what is the approach to success above situation. 
  I searched on internet about it, But I didnt find any useful Docs&amp;Articles. </p>