-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: improve the certificate handler, use user certificat…
…e store
- Loading branch information
Pejman Nikram
committed
Jan 5, 2024
1 parent
85ba654
commit a481633
Showing
20 changed files
with
228 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Lazvard.Message.Cli/CertificateGeneration/CertificateExportFormat.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Lazvard.Message.Cli/CertificateGeneration/CertificatePurpose.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Lazvard.Message.Cli/CertificateGeneration/EnsureCertificateResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Lazvard.Message.Cli/CertificateGeneration/ImportCertificateResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This is a copy of ASP.NET Core CertificateGeneration project | ||
|
||
Repo: https://github.com/dotnet/aspnetcore | ||
Path: src/Shared/CertificateGeneration/ | ||
|
||
To update these file run update.sh or update.ps1 |
4 changes: 3 additions & 1 deletion
4
src/Lazvard.Message.Cli/CertificateGeneration/UnixCertificateManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Variables | ||
$RepoUrl = "https://github.com/dotnet/aspnetcore.git" | ||
$PathInRepo = "src/Shared/CertificateGeneration/" | ||
|
||
# Create a temporary directory | ||
$TempDir = New-Item -ItemType Directory -Force -Path "$env:TEMP\$(Get-Random)" | ||
|
||
# Clone the repository to the temporary directory | ||
git clone $RepoUrl $TempDir | ||
|
||
# Copy files from the specified path to the current directory | ||
$SourcePath = Join-Path -Path $TempDir -ChildPath $PathInRepo | ||
Copy-Item -Path "$SourcePath\*" -Destination "." -Recurse | ||
|
||
# Cleanup: Delete the temporary directory | ||
Remove-Item -Path $TempDir -Recurse -Force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# Variables | ||
REPO_URL=https://github.com/dotnet/aspnetcore.git | ||
PATH_IN_REPO=src/Shared/CertificateGeneration/ | ||
TEMP_DIR=$(mktemp -d) | ||
|
||
# Clone the repository to a temporary directory | ||
git clone $REPO_URL $TEMP_DIR | ||
|
||
# Copy files from the specified path to the current directory | ||
cp -r $TEMP_DIR/$PATH_IN_REPO/* . | ||
|
||
# Cleanup: Delete the temporary directory | ||
rm -rf $TEMP_DIR |
Oops, something went wrong.