-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: Use pure Rust rather than link to OpenSSL (#7)
All the tests still pass, so this is at least equivalent to the previous content, but without the OpenSSL dependency. BREAKING CHANGE: This changes the type of `EncodingError::InvalidKeyError` and adds another variant.
- Loading branch information
Showing
3 changed files
with
27 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,6 @@ | ||
# AWS CloudFront Sign Utility | ||
Generating signed URLs for CloudFront links is a little more tricky than for S3. It's because signature generation for S3 URLs is handled a bit differently than CloudFront URLs. The Rusoto library is in maintenance mode and not accepting more features. Therefore we created this simple utility library to sign CloudFront URLs in Rust. | ||
|
||
## Requirements | ||
OpenSSL need to be installed. | ||
|
||
``` | ||
# macOS | ||
$ brew install [email protected] | ||
# Arch Linux | ||
$ sudo pacman -S pkg-config openssl | ||
# Debian and Ubuntu | ||
$ sudo apt-get install pkg-config libssl-dev | ||
# Fedora | ||
$ sudo dnf install pkg-config openssl-devel | ||
``` | ||
|
||
|
||
## Examples | ||
|
||
Getting signed cookies. | ||
|
@@ -45,4 +27,4 @@ let options = SignedOptions { | |
..Default::default() | ||
}; | ||
let signed_url = get_signed_url("https://example.com", &options).unwrap(); | ||
``` | ||
``` |
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