Forum Discussion

dmondou's avatar
dmondou
Copper Contributor
Nov 19, 2020

Appxmanifest Identity Publisher contains ST=Oregon instead of S=Oregon

I am trying to use the 10.0.19041.0 makeappx.exe using a certificate I can not change.  The issue is that the publisher subject lines contains ST=Oregon instead of S=Oregon and I get the following error:

MakeAppx : error: Error info: error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 6, Column 45, Reason: 'C=US, ST=Oregon, L=Portland, O=Acme Inc, CN=Acme Inc' violates pattern constraint of '(CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")(, ((CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")))*'.
The attribute 'Publisher' with value 'C=US, ST=Oregon, L=Portland, O=Acme Inc, CN=Acme Inc' failed to parse.

If I set S=Oregon it packages fine. However, it then cannot be signed because the subject line in the certificate has ST=Oregon and it doesn't match. Is there a way to get around this other then getting a new certificate created? 

thanks

10 Replies

  • davitm's avatar
    davitm
    Copper Contributor

    I have this same exact issue, using "S" does not work, the signing fails with: "The Publisher Identity in the AppxManifest.xml does not match the subject on the certificate", was this ever fixed?

  • Hi dmondou 

     

    Can you try passing in the /nv flag to MakeAppx when packaging. This should skip semantic validation. You'll have to verify that your package installs successfully after it's created.

     

    Cheers,

    Tanaka

     

     

    • dmondou's avatar
      dmondou
      Copper Contributor

      Hello Tanaka_Jimha ,

      With the /nv flag it does try to package up the files but then throws the following error:


      MakeAppx : error: Error info: error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 6, Column 45, Reason: 'C=US, ST=Oregon, L=Portland, O=Acme Inc, CN=Acme Inc' violates pattern constraint of '(CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")(, ((CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")))*'.
      The attribute 'Publisher' with value 'C=US, ST=Oregon, L=Portland, O=Acme Inc, CN=Acme Inc' failed to parse.

       

      Without the /nv flag it doesn't try to package anything it just throws the error right away.

      Thanks,
      David

      • dmondou's avatar
        dmondou
        Copper Contributor

        Hello @Tanaka_Jimha,

        Is there an update on this issue? as it is a blocker for us in trying to deploy our app.

         

        Thanks,

         

        David

Resources