Skip to content

Commit

Permalink
RSA deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
sk-keeper committed Nov 19, 2024
1 parent 4047242 commit e087b31
Show file tree
Hide file tree
Showing 119 changed files with 24,952 additions and 12,997 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*.h text

# Declare files that will always have CRLF line endings on checkout.
* text=auto eol=lf
*.sln text eol=crlf

# Denote all files that are truly binary and should not be modified.
Expand Down
68 changes: 30 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
name: Build Keeper SDK for .NET

on:
# push:
# branches:
# - 'release_*'
workflow_dispatch:
inputs:
sqlite_storage:
description: Build SQLite Vault storage
type: boolean
required: false
default: false
cli:
description: Build CLI package
type: boolean
Expand Down Expand Up @@ -43,12 +35,7 @@ jobs:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- uses: microsoft/setup-msbuild@v2

- uses: nuget/setup-nuget@v2
- run: nuget restore KeeperSdk.sln



- name: Load signing certificate
run: |
if (Test-Path -Path certificate.txt) { Remove-Item certificate.txt }
Expand All @@ -58,25 +45,21 @@ jobs:
Remove-Item certificate.txt
shell: powershell

- name: Restore solution
run: |
dotnet restore KeeperSdk.sln
shell: powershell

- name: Build Keeper SDK Nuget package
working-directory: ./KeeperSdk
run: |
if (Test-Path bin) { Remove-Item -Force -Recurse bin }
dotnet build /P:Configuration=Release /P:Version=${Env:PACKAGE_VERSION} /P:AssemblyVersion=${Env:BUILD_VERSION} /P:FileVersion=${Env:BUILD_VERSION}
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /f ..\certificate.pfx /t "http://timestamp.digicert.com" /v /p "${{ secrets.PFX_PASS }}" /d ".NET Keeper SDK" "bin\Release\net452\KeeperSdk.dll"
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /f ..\certificate.pfx /t "http://timestamp.digicert.com" /v /p "${{ secrets.PFX_PASS }}" /d ".NET Keeper SDK" "bin\Release\netstandard2.0\KeeperSdk.dll"
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /f ..\certificate.pfx /t "http://timestamp.digicert.com" /v /p "${{ secrets.PFX_PASS }}" /d ".NET Keeper SDK" "bin\Release\net8.0\KeeperSdk.dll"
dotnet pack --no-build --no-restore --no-dependencies /P:Configuration=Release /P:Version=${Env:PACKAGE_VERSION} /P:IncludeSymbols=true /P:SymbolPackageFormat=snupkg
shell: powershell

- name: Build SQLite Vault Storage
working-directory: ./OfflineStorageSqlite
run: |
if (Test-Path bin) { Remove-Item -Force -Recurse bin }
dotnet build --configuration=Release --no-dependencies
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /f ..\certificate.pfx /t "http://timestamp.digicert.com" /v /p "${{ secrets.PFX_PASS }}" /d ".NET Keeper SDK Offline SQLite Storage" "bin\Release\\netstandard2.0\OfflineStorageSqlite.dll"
dotnet pack --no-build --no-restore --configuration=Release /P:IncludeSymbols=true /P:SymbolPackageFormat=snupkg
shell: powershell

- name: Build CLI library
working-directory: ./Cli
run: |
Expand All @@ -91,17 +74,29 @@ jobs:
working-directory: ./Commander
run: |
if (Test-Path bin) { Remove-Item -Force -Recurse bin }
msbuild /T:Restore /P:Configuration=Release
msbuild /T:Build /P:Configuration=Release /p:BuildProjectReferences=false
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /f ..\certificate.pfx /t "http://timestamp.digicert.com" /v /p "${{ secrets.PFX_PASS }}" /d ".NET Keeper SDK" "bin\Release\Commander.exe"
dotnet build --configuration=Release --no-dependencies
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /f ..\certificate.pfx /t "http://timestamp.digicert.com" /v /p "${{ secrets.PFX_PASS }}" /d ".NET Keeper SDK" "bin\Release\net472\Commander.exe"
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /f ..\certificate.pfx /t "http://timestamp.digicert.com" /v /p "${{ secrets.PFX_PASS }}" /d ".NET Keeper SDK" "bin\Release\net8.0\Commander.dll"
shell: powershell

- name: Zip Commander
- name: Zip .Net Framework Commander
working-directory: "./Commander/bin/Release/net472"
run: |
$params = @{
Path = "Commander/bin/Release/*.exe", "Commander/bin/Release/Commander.exe.config", "Commander/bin/Release/*.dll", "OfflineStorageSqlite/bin/Release/netstandard2.0/OfflineStorageSqlite.dll"
Path = "*.exe", "Commander.exe.config", "*.dll", "x64/", "x86/"
CompressionLevel = "Fastest"
DestinationPath = "Commander-${Env:PACKAGE_VERSION}.zip"
DestinationPath = "Commander-win-${Env:PACKAGE_VERSION}.zip"
}
Compress-Archive @params
shell: powershell

- name: Zip .Net 8.0 Commander
working-directory: "./Commander/bin/Release/net8.0"
run: |
$params = @{
Path = "*.dll", "Commander.dll.config", "Commander.deps.json", "runtimes/", "Commander.runtimeconfig.json"
CompressionLevel = "Fastest"
DestinationPath = "Commander-net-${Env:PACKAGE_VERSION}.zip"
}
Compress-Archive @params
shell: powershell
Expand All @@ -118,18 +113,15 @@ jobs:
- name: Store Commander artifacts
uses: actions/upload-artifact@v4
with:
name: Commander-${{ env.PACKAGE_VERSION }}
path: Commander-${{ env.PACKAGE_VERSION }}.zip
name: Commander-win-${{ env.PACKAGE_VERSION }}
path: Commander/bin/Release/net472/Commander-win-${{ env.PACKAGE_VERSION }}.zip
retention-days: 1

- name: Store SQLite Offline Storage artifacts
if: ${{ inputs.sqlite_storage }}
- name: Store Commander artifacts
uses: actions/upload-artifact@v4
with:
name: OfflineStorageSqlite
path: |
OfflineStorageSqlite/bin/Release/Keeper.Storage.Sqlite.*.nupkg
OfflineStorageSqlite/bin/Release/Keeper.Storage.Sqlite.*.snupkg
name: Commander-net-${{ env.PACKAGE_VERSION }}
path: Commander/bin/Release/net6.0/Commander-net-${{ env.PACKAGE_VERSION }}.zip
retention-days: 1

- name: Store artifacts
Expand Down
12 changes: 4 additions & 8 deletions Cli/Cli.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net472</TargetFrameworks>
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
<RootNamespace>Cli</RootNamespace>
<Version>1.0.2</Version>
<Version>1.0.3</Version>
<PackageId>Keeper.Cli</PackageId>
<AssemblyVersion>1.0.2.3</AssemblyVersion>
<FileVersion>1.0.2.3</FileVersion>
<AssemblyVersion>1.0.3.4</AssemblyVersion>
<FileVersion>1.0.3.4</FileVersion>
<RepositoryUrl>https://github.com/Keeper-Security/keeper-sdk-dotnet</RepositoryUrl>
<PackageProjectUrl>https://github.com/Keeper-Security/keeper-sdk-dotnet/Cli</PackageProjectUrl>
<Authors>Keeper Security Inc.</Authors>
Expand All @@ -19,10 +19,6 @@
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\KeeperSdk\KeeperSdk.csproj" />
</ItemGroup>
Expand Down
Loading

0 comments on commit e087b31

Please sign in to comment.