Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Get smart card certificates on a Windows Mobile 6 application and Compact Framework

Get smart card certificates on a Windows Mobile 6 application and Compact Framework

Scheduled Pinned Locked Moved C#
helpcryptographyquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wakonda
    wrote on last edited by
    #1

    Hi everybody, Since few days, I try to read certificates on my Smart card by using Compact Framework 3.5 on Windows Mobile 6. I've already succedded to do this on a desktop application by using the following code :

    X509Store test = new X509Store(StoreName.Root, StoreLocation.LocalMachine);
    test.Open(OpenFlags.ReadOnly);

    if (test.Certificates.Count > 0)
    {
    foreach (X509Certificate2 cert in test.Certificates)
    {
    MessageBox.Show("Certificate: " + cert.ToString());
    }
    }

    Unfortunately, this code doesn't work on my mobile application: it me indicates that there are no certificate while my smart card contains two certificates! What happens? Have you got an idea? Have you already encounter the same issue? Thank you by advance for your help! Best regards

    W 1 Reply Last reply
    0
    • W Wakonda

      Hi everybody, Since few days, I try to read certificates on my Smart card by using Compact Framework 3.5 on Windows Mobile 6. I've already succedded to do this on a desktop application by using the following code :

      X509Store test = new X509Store(StoreName.Root, StoreLocation.LocalMachine);
      test.Open(OpenFlags.ReadOnly);

      if (test.Certificates.Count > 0)
      {
      foreach (X509Certificate2 cert in test.Certificates)
      {
      MessageBox.Show("Certificate: " + cert.ToString());
      }
      }

      Unfortunately, this code doesn't work on my mobile application: it me indicates that there are no certificate while my smart card contains two certificates! What happens? Have you got an idea? Have you already encounter the same issue? Thank you by advance for your help! Best regards

      W Offline
      W Offline
      Wakonda
      wrote on last edited by
      #2

      Hi, Finally to get certicates and public keys stored on my Smart Card, I have used directly the APDU's commands and It works fine! Commands are launched by using Winscard.dd. Best regards

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups