Find Jobs
Hire Freelancers

AWS Lambda Function to Return Signed Cookies

$10-30 USD

Cancelled
Posted about 8 years ago

$10-30 USD

Paid on delivery
I need an AWS Lambda Function to create signed cookies for accessing Cloudfront data. I think the following code is fairly close but it not 100% there. [login to view URL] = function(event, context) { var AWS = require('aws-sdk'); var privateKey = 'MIIEowblahblahblah'; var keyPairID = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAugAlKwwJxyp95yJUEynKj1hYwe6dTbbdviY08IL3UR0wOvDKBFWrsWRBDlAhTymA59uXhJi8zt/MVrneWPGytLJ6UiIxGVjaYJkLbtG+wOoN9LsUsTsQLgseHQv+MSutAB187MW8mwd0vRiNZ555Gm13K5g1eA8/uHr5lZyr94QKZdHpzSvcQaovqSZ36t1Uo8YjdI9wr3EslC9enrgHMJiTBNyd7YFB2+AjZv9/7WCjAArfDcPpgYOnmAvC/oLk43VMavmJm4ea+nu7IHZBU/XGXz+x+OoZ15JsDjzB5zaYg4vybqW/gZxUhCHoMYN4EF14ocXDuQ+52tpSZNznRQIDAQAB'; signer = new [login to view URL](keyPairId, privateKey) // Would like the key to be active for 1 hour opts = expires: (new Data(2020, 11, 11)).valueOf() / 1000 cookieHash = [login to view URL](opts) [login to view URL](cookieHash); // Echo back the first key value // [login to view URL]('Something went wrong'); }; Here are some relevant web links: [login to view URL] [login to view URL]
Project ID: 9447131

About the project

1 proposal
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of UNITED STATES
Bonita Springs, United States
5.0
131
Payment method verified
Member since Oct 25, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.