Search Unity

Can't set certificate in UWP Player/Publishing settings

Discussion in 'Editor & General Support' started by giacomohomunculus, Sep 22, 2020.

  1. giacomohomunculus

    giacomohomunculus

    Joined:
    Oct 3, 2018
    Posts:
    20
    Hello,

    When I navigate to Player Settings > Publishing Settings (UWP app) > Certificate > Select...

    Specify the certificate (which I have inside the Assets directory), then enter a password, I get the following errors in the Editor console:

    Assertion failed on expression: '(CERT_RDN_PRINTABLE_STRING == rdnAttribute.dwValueType) || (CERT_RDN_UNICODE_STRING == rdnAttribute.dwValueType)'
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Assertion failed on expression: 'SUCCEEDED(getSubjectResult)'
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Assertion failed on expression: 'SUCCEEDED(hr) || (hr == HRESULT_FROM_WIN32(ERROR_INVALID_PASSWORD))'
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Failed to set certificate.
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    When I open the SLN in VS and set the cert in the package.appxmanifest manually, it sets ok and I can build the appx with that cert just fine. So I know it isn't the cert or password.

    Any ideas on how to fix this?

    Using 2018.4.11f1
     
  2. JackieZhangQ

    JackieZhangQ

    Joined:
    Mar 16, 2020
    Posts:
    1
    got same problem