Url signing using AmazonCloudFrontUrlSigner #2508
-
Hello, We are trying to sign urls using AmazonCloudFrontUrlSigner from latest version of AWSSDK.CloudFront package. The code used to sign url is : string baseUrl = "ourdomain.com"; using (StreamReader privateKey = new StreamReader(@"C:\repos\UrlSingning\UrlSingning\private_key.pem")) We are getting the below exception : System.Exception Any idea about what we are doing wrong is very appreciated. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@catalingeorgecristea I'm unsure of the root cause of the issue, the article https://stackoverflow.com/questions/45928250/unknown-tag-encountered-parsing-attributecertificate-from-der-file-with-bouncyca points to the certificate issue. AWS SDK for .NET has unit test around AmazonCloudFrontUrlSigner and it would have failed if there was any issue.Were you able to resolve the issue? |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@catalingeorgecristea I'm unsure of the root cause of the issue, the article https://stackoverflow.com/questions/45928250/unknown-tag-encountered-parsing-attributecertificate-from-der-file-with-bouncyca points to the certificate issue. AWS SDK for .NET has unit test around AmazonCloudFrontUrlSigner
aws-sdk-net/sdk/test/NetStandard/UnitTests/Services/CloudFrontUnitTests.cs
Line 19 in 0b903cf
Were you able to resolve the issue?