-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: X.509 self signed certificate now uses ENV vars and settings file
- Loading branch information
1 parent
a0cc3ff
commit 76c9d6d
Showing
5 changed files
with
64 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# here some trials to have a publick raw key usable in phdr or uhdr | ||
# but, again, it seems that only x509 works for COSE Sign1 | ||
|
||
``` | ||
ckey = COSEKey.from_bytes(self.private_key.encode()) | ||
pubkey = ckey.key.public_key() | ||
self.public_key = CoseKey( | ||
crv=COSEKEY_HAZMAT_CRV_MAP[pubkey.curve.name], | ||
x=pubkey.public_numbers().x.to_bytes(32, 'big') | ||
) | ||
self.public_key = COSEKey( | ||
crv=self.private_key.crv, | ||
x=self.private_key.x, | ||
y=self.private_key.y | ||
) | ||
``` |
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.5.3" | ||
__version__ = "0.5.4" |
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