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.