In order to perform these operations, you must have an operating system of Windows 8.1 and above.
Creating the Certificate:
Open the PowerShell window and edit the following codes according to your own order: (PowerShell can be found by searching in the Start Menu)
Enter Your Website Name:
Code: Select all
$cert = New-SelfSignedCertificate -DnsName www.yourwebsitename.com -Type CodeSigning -CertStoreLocation Cert:\CurrentUser\My
Code: Select all
$CertPassword = ConvertTo-SecureString -String "Your_Password" -Force –AsPlainText
Code: Select all
Export-PfxCertificate -Cert "cert:\CurrentUser\My\$($cert.Thumbprint)" -FilePath "D:\Certs\Your_Cert_Name.pfx" -Password $CertPassword
Add Certificate to Application:
Let's download and run the DigiCert App, a free app.
https://www.digicert.com/util/
The certificate will be displayed on the CodeSigning Tab. (If there is a different situation, add the certificate by using the "import" button on the right.)
Add the certificate by following the steps in the image in order.
Conclusion:
Now you can right click on the certified application, open its properties and check the certificate.
Resources: (In Turkish Language)
[spoiler3]https://www.sordum.net/52936/bir-yazilima-kod-sertifikasi-nasil-eklenir/
https://www.sordum.net/52825/kod-imzalama-sertifikanizi-kendiniz-olusturun/[/spoiler3]