Open ssl pfx - #2150
Conversation
|
@Drawaes, |
|
Thanks! Even if we're not going keep it, it's nice to be able to use one cert file 👍 |
|
This isn't code we're ever going to ship, it's just a hack that we added a while ago to allow us to start working on HTTP/2 while we wait for support for ALPN in SslStream (which is apparently merged, and we're just waiting to update to it), but hey, if you want to make it work a little smoother, I'm not going to complain.
Hah, what tests? There are no tests for this code 😆 😛 |
|
yeah I know its not being kept... but you know, PEM files are ugly |
|
Yeah the ALPN should be good to go ... :) I have some more changes to go on SslStream... making it great again... (I also think I understand the lacklustre perf on Unix, but I am not there yet on implementing the fix as it's a beast of old code) |
For some reason, in my docker image (based on Debian Stretch), libssl doesn't have any of the set/add chain functions: Possibly an optional component not compiled in? I think I'm going to just revert this for now as this was intended to be part of a quick addition and wasn't something I planned to spend all day doing :) |
This reverts commit 41abe63.
|
sure if you want, or remove the chain stuff....They are macros that sometimes don't get compiled in. You probably aren't using chains in your PFX anyway |
|
Oh, they're macros? Then they wouldn't work at all. You can't P/Invoke to a macro. You'd have to call |
|
Ok, I think I can save it. I'll roll it into my PR though, so I can actually test it |
The tests probably won't pass because I need to set the password and path for the PFX instead of the PEM's you are currently using....
But its to give you the idea ;)