Using Microsoft.Clm how? RRS feed

  • Question

  • Edit

    Having read some more I believe my example is for some specific product, "microsoft forefront" and can not be used the way I wanted.
    I think I will have to come back with another question when I have a new idea...


    I am working on a project with virtual smart cards. I have managed to create the smartcards on client and now needs to request the certificate for them from the server.
    Using a version of this code:

    I manage to reg a certificate on the client, but I cant add it to a specific card.

    So I then found this:

    I think it looks promising, you seem to be able to choose a specif card here but not sure if this can be usable to be honest.

    Sorry for the long introduction but my question now is.

    How do I use that code. When I paste it, it says "The type or namespace clm does not exist in namespace microsoft.
    I clearly need to import something, I have googled around for it but cant figure out what and how.

    My second question is if anyone has any experience of this and think this is the way to go, everything I find on CLM is from 2009-2010 maybe there is a better way now. So if you understand what it is I wish to do and have any better ideas I would be grateful!

    • Edited by Johannes HC Wednesday, January 18, 2017 11:24 AM
    Wednesday, January 18, 2017 10:50 AM


  • Hi Johannes HC,

    >>When I paste it, it says "The type or namespace clm does not exist in namespace Microsoft.

    When check Microsoft.Clm.Shared.dll, the following is supported Platforms

    Development Platforms

    Windows 2008 x64 Edition

    Target Platforms

    Windows XP SP3, Windows Vista SP1+, Windows 7, Windows Server 2008, Windows Server 2008 R2

    For more information, please refer to https://msdn.microsoft.com/library/microsoft.clm.shared.certificates.x509clmcertificate.aspx?f=255&MSPPError=-2147217396

    Best regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Johannes HC Thursday, January 19, 2017 8:41 AM
    Thursday, January 19, 2017 6:56 AM