Create Amazon CloudFront Signed URL in VBScript (for ASP)

This sample code snippet is graciously provided by a Chilkat customer: See Also: Chilkat RSA ActiveX Reference Documentation … resource = “http://*********.cloudfront.net/something.jpg” ‘Expiration expiration = 1278680686 ‘Policy policy = “{“”Statement””:[{“”Resource””:””” & resource & _ “””,””Condition””:{“”DateLessThan””:{“”AWS:EpochTime””:” & _ expiration & “}}}]}” ‘Chilkat Component set pkey = Server.CreateObject(“Chilkat.PrivateKey”) ‘Load the private key from an RSA PEM file: private_key = pkey.LoadPemFile(“c:\pk-xxx.pem”) ‘Get the […]