locked
CertificateEnrollmentManager.ImportPfxDataAsync for Windows Phone 8.1 (Runtime) RRS feed

  • Question

  • I am trying to import my certificate using CertificateEnrollmentManager.ImportPfxDataAsync API but it does not complete successfully. When I try and catch any exception occurred, surprisingly, it does not throw any exception either. My client is Windows Phone 8.1 (runtime).

    Code:

    await CertificateEnrollmentManager.ImportPfxDataAsync(stringDataBase64Encoded,
                        stringPassword, ExportOption.NotExportable,
                        KeyProtectionLevel.NoConsent, InstallOptions.None, stringFriendlyName);
    

    In simple words, when I press F10 on this line of code, it goes into some infinitely time taking process.

    Edit: Also, it would help if I can check the directory in WP where the certificates are stored. Like in Windows we have them stored in the local storage "/AppData\Local\Packages\\AC\Microsoft\SystemCertificates\My\Certificates" folder.
    • Edited by Ashish.AW Monday, July 13, 2015 12:47 PM
    • Moved by Kristin Xie Tuesday, July 14, 2015 2:03 AM move to appropriate forum
    Monday, July 13, 2015 12:25 PM

All replies

  • Hi Ashish.AW,

    Like your title mentioned, you are developing Windows Phone 8.1 (runtime), this forum is discuss and ask questions about the C# programming language, IDE, libraries, samples, and tools. you should post in  Development    Developing for the Mobile Device Management Protocol . For a better support. I will move your case to that forum.

    Best regards,

    Kristin



    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, July 14, 2015 2:02 AM