79502973

Date: 2025-03-12 08:17:29
Score: 0.5
Natty:
Report link

You can create a new self-signed certificate using this command (replace the values in angle brackets):

New-SelfSignedCertificate -Type Custom -Subject "CN=<PublisherName>" -KeyUsage DigitalSignature -FriendlyName "<Certificate firendly name>" -CertStoreLocation "Cert:\CurrentUser\My" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}")

To see the certificates you've created, use this command:

Get-ChildItem "Cert:\CurrentUser\My" | Format-Table Thumbprint, Subject, FriendlyName

I've taken this information from Publish a packaged .NET MAUI app for Windows with the CLI; if copy-pasting the command from this comment doesn't work, try copying it directly from this article.

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: tommat208