- Jun 6, 2020
- 11,559
- 4,422
I have been working on creating a keystore for my Lets Encrypt certificates so that I can use them with a websockets server. In order to test out the keystore and keep things simple, I modified the following "Hello World" webapp example to use SSL with my keystore.
[H3]
In this tutorial we will develop the following web app: There are three components to this solution: Main module: configures the server and the handlers and web sockets. In this case we have a single WebSocket. It is mapped to a url which we later need to set in the html file. The WebSocket...
My modifications to the above example and the keystore work great and I can access the web application on both the HTTP and HTTPS ports
(BTW - If anyone is interested in the instructions to create a keystore using Lets Encrypt certificates, let me know and I'll be glad to post them here)
Here is the modified code for the Hello World webapp using SSL and based on Erel's Server SSL tutorial:
Hello World SSL:
[H3]
برای دیدن لینک ها باید ثبت نام کنید
[/H3]In this tutorial we will develop the following web app: There are three components to this solution: Main module: configures the server and the handlers and web sockets. In this case we have a single WebSocket. It is mapped to a url which we later need to set in the html file. The WebSocket...
برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
My modifications to the above example and the keystore work great and I can access the web application on both the HTTP and HTTPS ports
(BTW - If anyone is interested in the instructions to create a keystore using Lets Encrypt certificates, let me know and I'll be glad to post them here)
Here is the modified code for the Hello World webapp using SSL and based on Erel's Server SSL tutorial:
برای دیدن لینک ها باید ثبت نام کنید
Hello World SSL:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید