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.
Examples
Getting signed cookies.
use fs;
use Cow;
use *;
let private_key = read_to_string.unwrap;
let options = SignedOptions ;
let cookies = get_signed_cookie.unwrap;
Getting signed URL.
use fs;
use Cow;
use *;
let private_key = read_to_string.unwrap;
let options = SignedOptions ;
let signed_url = get_signed_url.unwrap;
Getting signed URL based on pattern matching.
use fs;
use Cow;
use *;
let private_key = read_to_string.unwrap;
let options = SignedOptions ;
let signed_url = get_signed_url.unwrap;