Redirect all examples to use shipped cert
This commit is contained in:
@@ -18,8 +18,8 @@ int main() {
|
|||||||
* You may swap to using uWS:App() if you don't need SSL */
|
* You may swap to using uWS:App() if you don't need SSL */
|
||||||
uWS::SSLApp app = uWS::SSLApp({
|
uWS::SSLApp app = uWS::SSLApp({
|
||||||
/* There are example certificates in uWebSockets.js repo */
|
/* There are example certificates in uWebSockets.js repo */
|
||||||
.key_file_name = "../misc/key.pem",
|
.key_file_name = "misc/key.pem",
|
||||||
.cert_file_name = "../misc/cert.pem",
|
.cert_file_name = "misc/cert.pem",
|
||||||
.passphrase = "1234"
|
.passphrase = "1234"
|
||||||
}).ws<PerSocketData>("/*", {
|
}).ws<PerSocketData>("/*", {
|
||||||
/* Settings */
|
/* Settings */
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ int main() {
|
|||||||
* You may swap to using uWS:App() if you don't need SSL */
|
* You may swap to using uWS:App() if you don't need SSL */
|
||||||
uWS::SSLApp *app = new uWS::SSLApp({
|
uWS::SSLApp *app = new uWS::SSLApp({
|
||||||
/* There are example certificates in uWebSockets.js repo */
|
/* There are example certificates in uWebSockets.js repo */
|
||||||
.key_file_name = "../misc/key.pem",
|
.key_file_name = "misc/key.pem",
|
||||||
.cert_file_name = "../misc/cert.pem",
|
.cert_file_name = "misc/cert.pem",
|
||||||
.passphrase = "1234"
|
.passphrase = "1234"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ int main() {
|
|||||||
* You may swap to using uWS:App() if you don't need SSL */
|
* You may swap to using uWS:App() if you don't need SSL */
|
||||||
uWS::SSLApp({
|
uWS::SSLApp({
|
||||||
/* There are example certificates in uWebSockets.js repo */
|
/* There are example certificates in uWebSockets.js repo */
|
||||||
.key_file_name = "../misc/key.pem",
|
.key_file_name = "misc/key.pem",
|
||||||
.cert_file_name = "../misc/cert.pem",
|
.cert_file_name = "misc/cert.pem",
|
||||||
.passphrase = "1234"
|
.passphrase = "1234"
|
||||||
}).ws<PerSocketData>("/*", {
|
}).ws<PerSocketData>("/*", {
|
||||||
/* Settings */
|
/* Settings */
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
int main() {
|
int main() {
|
||||||
/* Overly simple hello world app */
|
/* Overly simple hello world app */
|
||||||
uWS::SSLApp({
|
uWS::SSLApp({
|
||||||
.key_file_name = "../misc/key.pem",
|
.key_file_name = "misc/key.pem",
|
||||||
.cert_file_name = "../misc/cert.pem",
|
.cert_file_name = "misc/cert.pem",
|
||||||
.passphrase = "1234"
|
.passphrase = "1234"
|
||||||
}).get("/*", [](auto *res, auto */*req*/) {
|
}).get("/*", [](auto *res, auto */*req*/) {
|
||||||
res->end("Hello world!");
|
res->end("Hello world!");
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ int main() {
|
|||||||
return new std::thread([]() {
|
return new std::thread([]() {
|
||||||
|
|
||||||
uWS::SSLApp({
|
uWS::SSLApp({
|
||||||
.key_file_name = "../misc/key.pem",
|
.key_file_name = "misc/key.pem",
|
||||||
.cert_file_name = "../misc/cert.pem",
|
.cert_file_name = "misc/cert.pem",
|
||||||
.passphrase = "1234"
|
.passphrase = "1234"
|
||||||
}).get("/*", [](auto *res, auto * /*req*/) {
|
}).get("/*", [](auto *res, auto * /*req*/) {
|
||||||
res->end("Hello world!");
|
res->end("Hello world!");
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ struct us_listen_socket_t *globalListenSocket;
|
|||||||
int main() {
|
int main() {
|
||||||
/* Overly simple hello world app (SNI) */
|
/* Overly simple hello world app (SNI) */
|
||||||
uWS::SSLApp app = uWS::SSLApp({
|
uWS::SSLApp app = uWS::SSLApp({
|
||||||
.key_file_name = "../misc/key.pem",
|
.key_file_name = "misc/key.pem",
|
||||||
.cert_file_name = "../misc/cert.pem",
|
.cert_file_name = "misc/cert.pem",
|
||||||
.passphrase = "1234"
|
.passphrase = "1234"
|
||||||
}).missingServerName([&app](const char *hostname) {
|
}).missingServerName([&app](const char *hostname) {
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ int main() {
|
|||||||
* You may swap to using uWS:App() if you don't need SSL */
|
* You may swap to using uWS:App() if you don't need SSL */
|
||||||
uWS::SSLApp({
|
uWS::SSLApp({
|
||||||
/* There are example certificates in uWebSockets.js repo */
|
/* There are example certificates in uWebSockets.js repo */
|
||||||
.key_file_name = "../misc/key.pem",
|
.key_file_name = "misc/key.pem",
|
||||||
.cert_file_name = "../misc/cert.pem",
|
.cert_file_name = "misc/cert.pem",
|
||||||
.passphrase = "1234"
|
.passphrase = "1234"
|
||||||
}).ws<PerSocketData>("/*", {
|
}).ws<PerSocketData>("/*", {
|
||||||
/* Settings */
|
/* Settings */
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ int main() {
|
|||||||
* You may swap to using uWS:App() if you don't need SSL */
|
* You may swap to using uWS:App() if you don't need SSL */
|
||||||
uWS::SSLApp({
|
uWS::SSLApp({
|
||||||
/* There are example certificates in uWebSockets.js repo */
|
/* There are example certificates in uWebSockets.js repo */
|
||||||
.key_file_name = "../misc/key.pem",
|
.key_file_name = "misc/key.pem",
|
||||||
.cert_file_name = "../misc/cert.pem",
|
.cert_file_name = "misc/cert.pem",
|
||||||
.passphrase = "1234"
|
.passphrase = "1234"
|
||||||
}).ws<PerSocketData>("/*", {
|
}).ws<PerSocketData>("/*", {
|
||||||
/* Settings */
|
/* Settings */
|
||||||
|
|||||||
Reference in New Issue
Block a user