Skip to content

Commit

Permalink
Add better code sign info (#2775)
Browse files Browse the repository at this point in the history
Update a couple of dependencies
  • Loading branch information
ErikEJ authored Jan 10, 2025
1 parent d91f255 commit c6eb3b4
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/Core/RevEng.Core.80/RevEng.Core.80.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<PackageReference Include="Oracle.EntityFrameworkCore" Version="8.23.50" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql.NetTopologySuite" Version="8.0.2" />
<PackageReference Include="SimplerSoftware.EntityFrameworkCore.SqlServer.NodaTime" Version="8.0.1" />
<PackageReference Include="System.CodeDom" Version="8.0.0" />
<PackageReference Include="System.CodeDom" Version="9.0.0" />
<PackageReference Include="UnicodeInformation" Version="2.7.1" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/Core/RevEng.Core.90/RevEng.Core.90.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<!--<PackageReference Include="EFCore.Snowflake" Version="8.0.8" />-->
<PackageReference Include="EntityFrameworkCore.Scaffolding.Handlebars" Version="9.0.0-beta1" />
<PackageReference Include="EntityFrameworkCore.Sqlite.NodaTime" Version="9.1.0" />
<PackageReference Include="FirebirdSql.EntityFrameworkCore.Firebird" Version="12.0.0-alpha1" />
<PackageReference Include="FirebirdSql.EntityFrameworkCore.Firebird" Version="12.0.0-beta1" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.0" />
Expand All @@ -43,7 +43,7 @@
<PackageReference Include="Oracle.EntityFrameworkCore" Version="9.23.60" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql.NetTopologySuite" Version="9.0.0-preview.2.efcore.9.0.0" />
<PackageReference Include="SimplerSoftware.EntityFrameworkCore.SqlServer.NodaTime" Version="9.0.0" />
<PackageReference Include="System.CodeDom" Version="8.0.0" />
<PackageReference Include="System.CodeDom" Version="9.0.0" />
<PackageReference Include="UnicodeInformation" Version="2.7.1" />
</ItemGroup>

Expand Down
4 changes: 4 additions & 0 deletions src/GUI/RevEng.Shared/Providers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,10 @@ public static List<NuGetPackage> GetNeededPackages(DatabaseType databaseType, bo
pkgVersion = "11.0.0";
break;

case CodeGenerationMode.EFCore9:
pkgVersion = "12.0.0-beta1";
break;

default: throw new NotImplementedException();
}

Expand Down
43 changes: 43 additions & 0 deletions tools/code-sign.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## VSIX code signing

This is notes about using code signing for a VSIX (and also with NuGet packages, not doing this at the moment, to bound to local PC)

### VSIX extension code signing

- Download built .vsix from VSIX Gallery

- Log in to SimplySign Desktop

- Run sign (.NET global tool)

`sign code certificate-store -cfp 0Fxxx -k DEEDXXXX -csp "SimplySign CSP" -t http://time.certum.pl "EF Core Power Tools v2.6.750.vsix" -fl fileslist.txt`

- Upload to MarketPlace

## Notes

fileslist.txt contents:
EFCorePowerTools.dll
RevEng.Common.dll

-k = Key container id and -csp both displayed by certutil:

`certutil -user -store my "<certificate serial number>"`

-cfp = cert fingerprint, to get, save as binary .cer, then run this PowerShell command:

`Get-FileHash -Algorithm SHA256 <path to .cer file> | Format-Table -AutoSize`

## Certificate renewal notes

- 365 day cert must be bought again every year
- select automatic identity validation, using face recognition
- required documents:
- utility bill with my name and address on it
- PDF file with link to GitHub profile (profile has my full name on it)

## Nupkg code signing

dotnet nuget sign "ErikEJ.EntityFramework.SqlServer.6.6.7.nupkg" --certificate-fingerprint xxxx --timestamper http://time.certum.pl

--certificate-fingerprint = certificate thumbprint vist i Certmgr/SimplySign
29 changes: 0 additions & 29 deletions tools/code-sign.txt

This file was deleted.

0 comments on commit c6eb3b4

Please sign in to comment.