File tree Expand file tree Collapse file tree 7 files changed +72
-6
lines changed
Expand file tree Collapse file tree 7 files changed +72
-6
lines changed Original file line number Diff line number Diff line change 11node_modules
2- my.crt
3- my.key
Original file line number Diff line number Diff line change 1- # node-https-server
1+ # NodeJS HTTPS server
2+
3+ NodeJS HTTPS server which covers brief introduction of the following:
4+ - https [ to create nodejs server]
5+ - passport-http [ to authenticate http request]
6+
7+ # New Features!
8+ - Create https server using https module
9+ - Authenticate HTTP requests using passport-http
10+
11+ ### Tech
12+ This repo uses number of packages/modules:
13+ * [ https://github.com/jaredhanson/passport-http ] - passport-http
14+ * [ https://nodejs.org/dist/latest-v8.x/docs/api/https.html ] - https(core module)
15+
16+ ### Installation
17+ It requires [ Node.js] ( https://nodejs.org/ ) v7+ to run.
18+ Install the dependencies and devDependencies and start the server.
19+ ``` sh
20+ $ cd node-https-server
21+ $ npm install
22+ $ npm start
23+ ```
24+ # ** Screen-shots**
25+ ### _ 1. Index Page_
26+ > ![ index] ( https://user-images.githubusercontent.com/4725060/28993826-c01cf79a-79dd-11e7-9ffd-fa0ff03dd6f3.png )
27+
28+ ### _ 2. Login Page_
29+ > ![ login] ( https://user-images.githubusercontent.com/4725060/28993828-ce0277a4-79dd-11e7-82a3-e1a1a109cfd5.png )
30+
31+ ### _ 3. Dashboard Page_
32+ > ![ dashboard] ( https://user-images.githubusercontent.com/4725060/28993833-dc1fff3c-79dd-11e7-807c-4a73f0682bc2.png )
33+
34+ ### _ 4. Api Page_
35+ > ![ api] ( https://user-images.githubusercontent.com/4725060/28993839-eafd7c64-79dd-11e7-96a8-a95c9eddc039.png )
36+
Original file line number Diff line number Diff line change 1+ -----BEGIN CERTIFICATE-----
2+ MIICrjCCAhegAwIBAgIJAIcubYUksaiFMA0GCSqGSIb3DQEBCwUAMHAxCzAJBgNV
3+ BAYTAklOMQswCQYDVQQIDAJXQjEMMAoGA1UEBwwDS09MMQswCQYDVQQKDAJDTjEL
4+ MAkGA1UECwwCQ04xDTALBgNVBAMMBHJ1cGExHTAbBgkqhkiG9w0BCQEWDnJ1cGFA
5+ Z21haWwuY29tMB4XDTE3MDUyMDA1MzgyM1oXDTE4MDUyMDA1MzgyM1owcDELMAkG
6+ A1UEBhMCSU4xCzAJBgNVBAgMAldCMQwwCgYDVQQHDANLT0wxCzAJBgNVBAoMAkNO
7+ MQswCQYDVQQLDAJDTjENMAsGA1UEAwwEcnVwYTEdMBsGCSqGSIb3DQEJARYOcnVw
8+ YUBnbWFpbC5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAOjTFWnbBlfO
9+ i0IGHE5IuKQ0/uQcNEUVWfJwD9IVBS6maihr28nqnfC2T4y926V4hqnkrEYFxlqo
10+ 6BCKw0pNN0zmGE4ITfW3tkdgwc9rSzHBGFXjdllpj3fdw9NUUpvnjPXo7GN4eLZw
11+ 58aPJhxH/+ee5L44zVGKAEWEARDcH7TZAgMBAAGjUDBOMB0GA1UdDgQWBBTkULcD
12+ a2Sk6xkKTfg/du5Cm1gsojAfBgNVHSMEGDAWgBTkULcDa2Sk6xkKTfg/du5Cm1gs
13+ ojAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4GBAHKY5nfNvyf4itsZR1mR
14+ rgBMq+GALkG50UBkTEWRE3RVi7J6msUGqmfk56XaTBR9CuAuAlsTyCIFqLsSUd1c
15+ /D0GpuzC/xNqSxXPdiQ8ZFZ2KYoLaHlzegmZRokOtgXBBo6Vs4mclQDICDfbgVFF
16+ 4xF2d7Pl2jBly1WPcez06/wT
17+ -----END CERTIFICATE-----
Original file line number Diff line number Diff line change 1+ -----BEGIN PRIVATE KEY-----
2+ MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAOjTFWnbBlfOi0IG
3+ HE5IuKQ0/uQcNEUVWfJwD9IVBS6maihr28nqnfC2T4y926V4hqnkrEYFxlqo6BCK
4+ w0pNN0zmGE4ITfW3tkdgwc9rSzHBGFXjdllpj3fdw9NUUpvnjPXo7GN4eLZw58aP
5+ JhxH/+ee5L44zVGKAEWEARDcH7TZAgMBAAECgYASVbUk/euU9J4A2AxYmd94hvff
6+ rNzs586Kigqk56Td1JsdjcjkMMa5UxIWqkjm0gQA0xJB/WhucUi9LMBOVKBbFnoe
7+ BQ65jMyXNc3t4teWcQBQzy+xSAz6CgY8fxNLd9y3wII46KDTA+kUrJcE34XW+fuZ
8+ vgU/xWJJE6LbFzEKUQJBAPjp2vOLsVH4ZlUDbyOgIFyWS9xD1Y/+aYRl4TAOvkVk
9+ FX9Xx2xbPLO9p6fdkcdY0rJGmXTSokm6p1+WvaLMx+0CQQDvc/fPOnlllf97fehm
10+ vuUeIjdKYlvIlvROvQIyj6HBTQ5iCsrUhg5P++lZSSmzXGee9fRF1vscp4LD8PXr
11+ MWsdAkA/Fu8DGd4Y26/8TkGGMxjgvst9icgAlkhiYXxBNQtvBR4Zx8LpKPrqx+BN
12+ wPApKc9FlnVg0d6Gd4Piy49HS0ZFAkEA3KAdU/Ksp8zs+PuphgGdWYZtKzw1FT0B
13+ HQtJWwy8HT7CYdNPz0E1Lr0M5BdlNL2PPAeiajcKZ/xvn9oEvA9sgQJBAOXsHz2j
14+ YHHiZWVCqkf0xkNJyqwLb+XdPp+0Fl1mqf/FWR5Dc4gvzeBQ98moqbX4TRqC98EQ
15+ SjM3D24XOvf5YMk=
16+ -----END PRIVATE KEY-----
Original file line number Diff line number Diff line change 11{
2- "name" : " passportauth " ,
2+ "name" : " node-https-server " ,
33 "version" : " 1.0.0" ,
44 "description" : " " ,
55 "main" : " index.js" ,
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22<html >
33<head >
4- <title >Passport Authentication </title >
4+ <title >NodeJS HTTPS Server </title >
55</head >
66<body >
77 <% if (! isAuthenticated) { % >
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22<html >
33<head >
4- <title >Passport Authentication | Login</title >
4+ <title >NodeJS HTTPS Server | Login</title >
55</head >
66<body >
77 <form method =" post" action =" /login" >
You can’t perform that action at this time.
0 commit comments