Requiring self signed certificate when referencing the Twilio dll

91 Views Asked by At

I am trying to integrate with Twilio to send text messages from our application. I did the nuget install as instructed on their site. When I attempt to run anything that references the dll, I'm getting this message:

enter image description here

enter image description here

I unchecked the Sign the Assembly in the project and that fixed this but I don't have the liberty of changing the project file.

enter image description here

How do I get around this without having to uncheck this option?

1

There are 1 best solutions below

2
On BEST ANSWER

If you want to reference the library directly (not through another proxy/wrapper) the easiest fix in this scenario would be to download the source code and compile a signed version yourself.

However, I stumbled upon this interesting article: .NET-Fu: Zero Delay Signing Of An Unsigned Assembly, and contrary to my initial comment, it seems you can actually sign an already compiled DLL by first decompiling it into IL and then recompiling it, signing it in the process. Microsoft even provides you with tools that can be used to do so, namely ildasm for decompilation and ilasm for re-compilation.