I want to get presigned URL for my CloudFront media content files. I have code in c# for S3 Presigned URL but that doesnt work for ColudFront Please help me in this regards. I have C# code for the cloudFront, but not able to figure out how to implement it. Below is the code:
private const string AccessKeyId = "";- what to put here
private const string SecretAccessKey = "";- what to put here
private const string KeyPairId = "";- what to put here
private const string PrivateKey = "";- what to put here , is it a filename or the path
private static void Main()
{
const string FileName = "My.File.Zip";
const string S3Bucket = "mybucket";
const string CloudFrontBaseUrl = @"http://blahblah.cloudfront.net/";
const int MinutesValid = 15;
var expiry = DateTime.Now.AddMinutes(MinutesValid);
var s3SecureUrl = S3.GetSecureUrl(S3Bucket, FileName, expiry, AccessKeyId, SecretAccessKey);
var cloudFrontSecureUrl = CloudFront.GetSecureUrl(CloudFrontBaseUrl + FileName, expiry, PrivateKey, KeyPairId);
}