tong / hxssl

Haxe→C++/Neko OpenSSL bindings
30 stars 45 forks source link

Possible to provide certificate direct in code #30

Open RudolfVonKrugstein opened 10 years ago

RudolfVonKrugstein commented 10 years ago

Hey, I am developing a haxe based application supposed to run on many platforms using openfl. The app should connect to only to a single server and therefore needs to know only one certificate, the one from the server. Is it possible to provide the certificate directly in the code, without pointing hxssl to a file?

hexonaut commented 10 years ago

The openssl method we are using requires a file or folder to verify server certificates. You can look through the openssl documentation for a function that accepts an embedded buffer instead. I'm not sure if this exists.