Comments (9)
Hi @sameera, did you already try to use the EmbedIO binding to wss with a certificate in your machine? For example following these steps to do the cert thing: http://stackoverflow.com/questions/11403333/httplistener-with-https-support
from embedio.
Hi,
Thanks, I'll try it out. However, at a glance, this approach seems to limit me to a static port number (I.e. I'd have to hard code the port in the app as the cert is bound manually to one).
What do you consider the effort would be to do what socketsharp is doing (loading the cert off a .pfx file)?
from embedio.
The implementation in socketsharp looks really good, I'm going to take a deep look and let you know if we move to implement something similar.
from embedio.
Just checking in: Have you decided on either way?
from embedio.
@sameera Could you please try the following nuget? This is the simplest, most transparent way of setting certificates on ports and bindings. Please check it out and let us know how it goes. https://www.nuget.org/packages/SslCertBinding.Net/
from embedio.
Thanks Mario.
This would probably work for most scenarios; however, not mine.
Reading through this implementation, looks like it needs the certificate to already be in the user's Certificate store. Which means the certificate is already installed and this simply does port binding to it.
In my scenario, I have a standalone executable that I distribute which has the embedded websocket server. I want to embed the X509 certificate in the app as an embedded resource. I got this working fine with WebSocket-Sharp library. But, the implementation of WSS is almost done from scratch as it defines it's own HttpListener, WebSocketContext etc. rather than using the native .NET counterparts. So, (among other reasons) I'd prefer to use a EmbedIO instead if possible.
from embedio.
Hi,
Just want to let you know that this is no longer a requirement for me. Therefore, I could close this issue for now unless, this is a feature you are planning to build eventually.
from embedio.
This is an old thread. I'm closing this issue because there currently are no plans to implement X509 certs within EmbedIO but rather configure them via standard methods.
from embedio.
As an update, a combination of the following methods/packages should work:
https://github.com/segor/SslCertBinding.Net
http://stackoverflow.com/questions/30131591/httplistener-with-ssl-certificate-hanging-on-getcontext
from embedio.
Related Issues (20)
- How to send statuscode 202 HOT 1
- EmbedIO 3.5.0 NuGet package references wrong/old version of Unosquare.Swan.Lite HOT 22
- System.ObjectDisposedException when processing multiple requests at once HOT 2
- WithZipFile should open a read only handle(or have the option to) HOT 2
- FileModule or StaticFolderModule get stuck returning medium files HOT 4
- Add XML as response type
- EmbedIO Dual-Stack Localhost Listener Causes Empty Replies HOT 1
- How can I custom the Server header HOT 2
- Disable request logging only
- Cookies issue
- EmbedIO.Samples console app does not work when PublishAot is set to true HOT 2
- Web Server does not work in Xamarin.iOS (IOS-17) HOT 3
- How to report progess via api - event-stream
- HttpContext.OnClose not firing HOT 1
- Getting rid of double quotes around strings in a Web API response (turning off JSON serialization) HOT 1
- Issue Serving Static Folder Xamarin ( 3.5.2) Forms on Android
- Request.Url mixing up http and https
- server stop responding after some time HOT 4
- The return array is empty. HOT 1
- Crash the webserver and restart the main application
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embedio.