Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UWP app -Invalid package family name, after update certificate

I created app for uwp (win 10 desktop). I could not build package for store. I received an error: it is necessary to update the certificate. I have updated certificate and build my package. But when I upload the package to the store, I get the error:

Invalid package family name: MyPackage.xxxx_xxxx (expected: MyPackage.yyyy_yyyyy)
Invalid package publisher name: CN=XYX (expected: CN=xxx-xxxx-xxx-xxxx)

But I opened my app manifest and I see:

Published: CN=xxx-xxxx-xxx-xxxx
Package Family Name: MyPackage.yyyy_yyyyy

It is what expected. In "open sertificate" I see : Publisher -XYX.

How do I fix it all? Any ideas?

like image 713
FetFrumos Avatar asked Dec 03 '16 19:12

FetFrumos


2 Answers

I solved this issue. I made a mistake when creating new certificate. It must be so:

  1. Open Package.appxmanifest.
  2. Go to the "Packaging" tab.
  3. Copy Publisher DN(number after CN=)
  4. Click the button "Choose Certificate" and select the item "Create test certificate..."
  5. Copy the publisher DN from step 3 to the first editable text field
like image 119
FetFrumos Avatar answered Dec 16 '22 12:12

FetFrumos


Update for Visual Studio 2019

  1. Open Package.appxmanifest from Solution Explorer
  2. Go to "Packaging" tab
  3. Copy Publisher name after CN=. Looks like a GUID
  4. Click "Choose Certificate..."
  5. Click "Configure Certificate..."
  6. Click "Create..."
  7. Paste GUID from #3 into "Publisher Common Name"
  8. Proceed to create and save certificate

Problem seems that it defaults to developer name instead of using the original GUID

like image 34
under Avatar answered Dec 16 '22 11:12

under