-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow rsa2k and nistp local key generation (#80)
* Allow rsa2k and nistp keys generation * Added test case
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash -e | ||
|
||
sq="" | ||
cipher_suite="" | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
source $SCRIPT_DIR/../dsm/common.sh | ||
|
||
# Create a temporary directory to store generated keys | ||
data="" | ||
create_tmp_dir data | ||
|
||
# Set up a trap to delete the temporary directory upon exit | ||
trap 'erase_tmp_dir $data' EXIT | ||
|
||
# Generate key locally with given cipher-suite | ||
$sq key generate --userid="Bob Сергeeвич Прокoфьев <[email protected]>" --cipher-suite="$cipher_suite" --export="$data/${cipher_suite}key" |