-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
Generate
and SaveToPEM
methods to crypto::PrivateKey
Ticket: MEN-6657 Changelog: None Signed-off-by: Lluis Campos <[email protected]>
- Loading branch information
1 parent
61fd3f4
commit b0c035d
Showing
7 changed files
with
209 additions
and
7 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
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 @@ | ||
#cmakedefine MENDER_CRYPTO_OPENSSL_LEGACY @MENDER_CRYPTO_OPENSSL_LEGACY@ |
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,39 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIG4wIBAAKCAYEAmNXA6xtQoKiZe1Z9DlX+W4pubQsj+R3GDKx9Wmgd91N28hMh | ||
q/1Z9JGlIp4JbBYyWgiHBSFRo/6XefMrIIiLhS0Z8RPkWo20JhNEYTNx6BbkWoPV | ||
uKNMZB9iN5kx28t+ptAEuSRAZUFqBTWHfXr9+Yy4F5cRJFvALYgobUHx5dKXscIt | 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fOMhootetcWn7pMS/Ryt7hbXHDLlYM0MQydPmwCkWklZTPNBhnHgyVYVUUehspI | ||
is7xV5riGwo/NV79GuXKV9KUQw2Y82a4ldoR/UmHb0TKBsQJLLasAdQRsKY3gfY/ | ||
GeFeHODkLEXq7w+TbXHTBP8mJV4g9o2mBqjmxkwsSw6/sEmLarVv | ||
-----END RSA PRIVATE KEY----- |
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