Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use certificate by trusted source while publishing maui blazor app #7961

Closed
ParkerRedford opened this issue Jun 12, 2022 · 6 comments
Closed
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/windows 🪟 s/needs-info Issue needs more info from the author s/no-recent-activity Issue has had no recent activity t/bug Something isn't working

Comments

@ParkerRedford
Copy link

ParkerRedford commented Jun 12, 2022

Description

I'm trying to publish a maui blazor app using a certificate by a trusted source, but the manifest is giving me an error.
errormessage

Steps to Reproduce

  1. Created the pfx file using openssl
    createpfx
  2. Installed the certificate on Windows
  3. Modified the project file
    project
  4. Modified the Package.appxmanifest file
    identity
  5. Selected the pfx file from the Packaging tab and provided my password, which gives me the error message
    select

cncert
thumbprint

trusted

Version with bug

6.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

net6.0-windows10.0.19041.0

Did you find any workaround?

No, .net maui non hybrid app gives me the same error.

Relevant log output

No response

@ParkerRedford ParkerRedford added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jun 12, 2022
@jfversluis
Copy link
Member

What if you don't use the manifest designer and just follow the Docs for this, but now with an already existing certificate?

I don't see why the process for a trusted certificate should be different than a self-signed one. My gut feeling says this is something in the tooling that is not ready for this scenario that you're following yet.

@jfversluis jfversluis added platform/windows 🪟 area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jun 13, 2022
@ParkerRedford
Copy link
Author

I ran 'dotnet publish -f net6.0-windows10.0.19041.0 -c Release' by going through the docs, but I got a similar error but it's from the console
console-error

@ParkerRedford
Copy link
Author

If I ran the same command in Package Manager Console, I got no error but no certificate was exported. I'm not sure using Package Manager Console makes any difference.

@mattleibow
Copy link
Member

What happens if you use this certificate in a plain WinUI app? We are using the underlying tooling from WinUI for the final signing and packaging stage. I wonder if WinUI is needing some special format or encoding or password rules?

@mattleibow mattleibow added the s/needs-info Issue needs more info from the author label May 19, 2023
@ghost
Copy link

ghost commented May 19, 2023

Hi @ParkerRedford. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ghost ghost added the s/no-recent-activity Issue has had no recent activity label May 23, 2023
@ghost
Copy link

ghost commented May 23, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@ghost ghost closed this as completed May 26, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 25, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/windows 🪟 s/needs-info Issue needs more info from the author s/no-recent-activity Issue has had no recent activity t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants