You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/creating-https-application/index.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,9 +43,9 @@ Create main controller
43
43
$ fanocli --controller=Home --route=/
44
44
```
45
45
## Setup SSL certificate
46
-
For our development purpose we only need to use self-signed certificate. If you plan to have a publicly reachable server, you will need to ask a trusted third party, called *Certificate Authority*, to attest the certificate for you.
46
+
For our development purpose, we only need to use self-signed certificate. If you plan to have a publicly reachable server, you will need to ask a trusted third party, called *Certificate Authority*, to attest the certificate for you.
47
47
48
-
We need to create private key. We use OpenSSL to generate 1024 bit key. For our purpose, 1024 bit key is sufficient.
48
+
We need to create secret private key. We use OpenSSL to generate 1024 bit key. For our purpose, 1024 bit key is sufficient.
49
49
50
50
```
51
51
$ openssl genrsa -out myhttps.key 1024
@@ -57,9 +57,9 @@ If everything is ok, you should find `myhttps.key` file in current directory. Ne
You will be asked serveral questions, make sure `Common Name` match URI of your domain.
60
-
If command is succesful, you should find `myhttps.pem` file in current directory.
60
+
If command is successful, you should find `myhttps.pem` file in current directory.
61
61
62
-
## Add certificate in application
62
+
## Add SSL certificate in application
63
63
64
64
Open `src/app.pas` and edit lines like so
65
65
@@ -76,7 +76,7 @@ Run
76
76
$ ./build.sh
77
77
```
78
78
79
-
Wait until compilation is finished. If you get error such as
79
+
Wait until compilation is finished. If you get error such as,
80
80
81
81
```
82
82
/usr/bin/ld : cannot find -lmicrohttpd
@@ -94,7 +94,7 @@ $ ./bin/app.cgi
94
94
95
95
## Access application from browser
96
96
97
-
By default, our application listens on port `20477`. Open web browser and go to `https://127.0.0.1:20477`. Internet browser will show warning because we use self-signed certificate. Just ignore it and you should see text *Home Controller* is printed on browser.
97
+
By default, application listens on port `20477`. Open web browser and go to `https://127.0.0.1:20477`. Internet browser will show warning because we use self-signed certificate. Just allow and accept it and you should see text *Home Controller* is printed on browser.
0 commit comments