that's my friend website made by a dev compagny, so i don't know all of the thing on it ^^
Someone followed some instructions to get a cert like 90 days ago.
Some of those instructions may be needed now.
i reboot the entire server but now it's completly down
the people who developed the site and you are not nice and left after the money
HTTP is still responding:
curl -Iki https://ohward.com
curl: (7) Failed to connect to ohward.com port 443: Connection refused
root@ul18ipv46:/var/tmp/trash# curl -Iki http://ohward.com
HTTP/1.1 200 OK
Server: nginx/1.14.0 (Ubuntu)
Date: Fri, 15 Jan 2021 16:22:00 GMT
Content-Type: text/html
Content-Length: 10918
Last-Modified: Fri, 10 Jul 2020 15:19:40 GMT
Connection: keep-alive
ETag: "5f08870c-2aa6"
Accept-Ranges: bytes
Did you just say that "I'm not nice"?
Please clarify your statement:
sorry google transalte ^^ not you
EXPRESS appears to be a NODE.JS (Java Script) application.
I'm not familiar with it.
since the creation of the site we have more contact with the developers
I don't know how to turn it on.
Try reviewing the previous commands with:
history | more
here is the previous commands :
1 ls
2 pwd
3 git clone https://gitlab.com/TechOhward/ohwardvitrine
4 ls
5 cd ohwardvitrine/
6 ls
7 git log --oneline
8 npm install
9 apt-get update
10 sudo apt-get update
11 sudo apt-get install npm
12 npm
13 node -v
14 npm install
15 cat package.json
16 npm build:ssr && npm run serve:ssr
17 npm run build:ssr && npm run serve:ssr
18 ng --version
19 ng
20 npm install -g @angular/cli
21 sudo npm install -g @angular/cli
22 ng
23 npm run build:ssr && npm run serve:ssr
24 wget https://nodejs.org/dist/v6.9.2/node-v6.9.2-linux-x64.tar.xz
25 sudo apt-get install xz-utils
26 tar -C /usr/local --strip-components 1 -xJf node-v6.9.2-linux.x64.tar.xz
27 sudo tar -C /usr/local --strip-components 1 -xJf node-v6.9.2-linux.x64.tar.xz
28 sudo tar -C /usr/local --strip-components 1 -xJf ./node-v6.9.2-linux.x64.tar.xz
29 ls
30 sudo tar -C /usr/local --strip-components 1 -xJf ./node-v6.9.2-linux-x64.tar.xz
31 ls
32 npm -v
33 node -v
34 npm run build:ssr && npm run serve:ssr
35 wget https://nodejs.org/dist/v10.9.0/node-v10.9.0-linux-x64.tar.xz
36 sudo tar -C /usr/local --strip-components 1 -xJf ./node-v10.9.0-linux-x64.tar.xz
37 node -v
38 npm run build:ssr && npm run serve:ssr
39 rm -fr node
40 ls
41 rm -fr node_modules/
42 rm node-v*
43 ls
44 npm install
45 npm run start
46 npm run start --port 80
47 sudo npm run start --port 80
48 ng serve --port 80
49 /usr/local/bin/node
50 /usr/local/bin/node -v
51 ln -sf
52 ln -sf -h
53 ln -sf --help
54 /usr/bin/node -v
55 rm /usr/local/bin/node
56 sudo rm /usr/local/bin/node
57 node -v
58 ng serve --port 80
59 npm run start --port 80
60 npm run start --port=80
61 ng serve --port 80
62 sudo ng serve --port 80
63 sudo ng serve --port 80 --host 0.0.0.0
64 npm run build:ssr && npm run serve:ssr --host 0.0.0.0 --port 80
65 NODE_ENV=production npm run build:ssr && npm run serve:ssr --host 0.0.0.0 --port 80
66 npm run build:ssr
67 sudo npm run build:ssr
68 rm -fr node_modules/
69 npm install
70 npm run build:ssr
71 npm run build:ssr --max-old-space-size=512
72 free -m
73 top
74 ls
75 curl -X GET localhost:80
76 restart
77 sudo restart
78 ls
79 |
80 curl -L https://npmjs.org/install.sh | sudo sh
81 npm -v
82 ls
83 cd ohwardvitrine/
84 npm install
85 ls
86 npm run build:ssr && npm run serve:ssr
87 npm urn start
88 npm run start
89 sudo apt-get install tmux
90 tmux
91 curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
92 sudo apt-get install -y nodejs
93 node -v
94 nodejs
95 tmux a
96 tmux
97 ls
98 docker ps
99 sudo su
100 tmux a
101 lsls
102 tmux a
103 cd ohwardvitrine/src/app/
104 ls
105 cd ../assets/
106 cd i18n/
107 ls
108 ls -l fr.json
109 chown ubuntu fr.json
110 sudo chown ubuntu fr.json
111 ls -l
112 chgrp ubuntu fr.json
113 ls
114 ls -l
115 git fetch origin
116 ls
117 cd ohwardvitrine/
118 git fetch origin
119 git pull
120 docker ps
121 sudo su
122 git pull
123 git stash
124 git pull
125 git status
126 git reset --hard HEAD
127 git pull
128 tmux a
129 tmux
130 tmux a
131 sudo su
132 tmux a
133 ls
134 cd ohwardvitrine/
135 tmux a
136 cd ohwardvitrine/
137 git pull
138 git stash
139 git pull
140 git diff
141 git status
142 ls
143 cat .git
144 cat .gitignore
145 git fetch origin
146 git diff
147 git pull origin develop
148 ls /home/ubuntu/.config/
149 ls -la /home/ubuntu/
150 git status
151 git pull origin develop
152 cat src/app/navbar/navbar.component.html
153 git status
154 git fetch origin develop
155 git pull origin develop
156 cat src/app/navbar/navbar.component.html
157 git pull origin develop
158 git status
159 git add .
160 git commit -m "Save Translation File 05/05/2020"
161 git commit --amend -m "Save Translation File 05/06/2020"
162 git log --oneline
163 git push origin develop
164 git status
165 git add .
166 git commit -m "07.06.2020 Save"
167 git push origin develop
168 git log --oneline
169 git pull origin develop
170 ls
171 git pull origin develop
172 git status
173 git push origin develop
174 ls
175 ls src/assets/
176 ls src/assets/pictures/members/
177 ls src/assets/pictures/members/ -l
178 ls src/assets/pictures/members -l
179 ls src/assets/pictures/ -l
180 ls -l .
181 ls -l ..
182 git pull origin develop
183 git status
184 git add .
185 git commit -m "Save 09/06/2020"
186 git push origin develop
187 git status
188 git pull origin develop
189 cd ohwardvitrine/
190 ng serve --host 0.0.0.0
191 ng serve --host 0.0.0.0 --port 80
192 sudo ng serve --host 0.0.0.0 --port 80
193 tmux a
194 tmux
195 tmux ls
196 tmux a -t 1
197 tmux ls
198 tmux a
199 cd ohwardvitrine/
200 git diff
201 git status
202 git add .
203 git commit -m "Save 12/06/2020"
204 git push origin develop
205 git status
206 git add .
207 git commit -m "Save 22/06/2020"
208 git push origin develop
209 cd ohwardvitrine/
210 sudo ng serve --host 0.0.0.0 --port 80
211 tmux
212 tmux a
213 ls
214 lstat
215 top
216 htop
217 cd ohwardvitridf -h
218 ls /
219 ls -l
220 ls -l /
221 charset
222 ls
223 sudo find / -type f -size +10M -exec ls -lh {} \;
224 apt-get update
225 sudo apt-get update
226 sudo apt-get uninstall docker
227 ls
228 sudo apt-get remove docker
229 ls
230 cd /v
231 cd /var
232 ls
233 cd log
234 ls
235 cd journal
236 ls
237 cd a
238 ls
239 cd a
240 ls
241 cd a8a06898238949a9824390fb493a62e3
242 ls
243 ls -l
244 rm *~
245 sudo rm *~
246 rm system@0005a61629cdcf8b-2c161a132c8458d2.journal~
247 sudo rm system@0005a61629cdcf8b-2c161a132c8458d2.journal~
248 ls
249 ls -l
250 df -h
251 sudo rm system@0cba355c0e424d428fb7339edb849768-0000000000000001-0005a91af4388ca8.journal
252 ls -l
253 sudo rm system@19b85003b67f455facbc29b1334e64a5-0000000000000001-0005a0fc57b1630c.journal system@19b85003b67f455facbc29b1334e64a5-0000000000005f2e-0005a1d13bc50bbf.journal
254 cd /
255 df -h
256 ls
257 sudo find / -type f -size +10M -exec ls -lh {} \;
258 sudo apt-get remove docker
259 df -h
260 sudo apt-get purge docker-ce docker-ce-cli containerd.io
261 sudo rm -fr /var/lib/docker/
262 df -h
263 sudo apt-get remove docker-init
264 ls
265 pwd
266 sudo apt-get purge docker-engine
267 sudo apt purge docker-engine
268 sudo apt autoremove
269 whereis docker
270 sudo apt remove docker
271 sudo apt purge docker
272 df -h
273 ls
274 whereis docker
275 dpkg -S /usr/bin/docker
276 sudo apt-get purge docker.io
277 ls /etc/docker/
278 ls
279 df -h
280 tmux
281 tmux a
282 tmux
283 tmux a
284 cd ohwardvitrine/
285 ls
286 git status
287 git diff
288 git add .
289 git commit -m "Save 07/07/2020"
290 git push origin develop
291 git pull
292 git pull origin develop
293 git status
294 git fetch origin
295 git fetch origin develop:develop
296 git fetch origin develop
297 git log --oneline
298 cd ohwardvitrine/
299 git pull origin develop
300 tmux a
301 cd ohwardvitrine/
302 git pull origin develop
303 cd ohwardvitrine/
304 git pull origin develop
305 tmux a
306 cd ohwardvitrine/
307 git status
308 git add .
309 git commit -m "Save 08/07/2020"
310 git push origin develop
311 git pull origin develop
312 cd ohwardvitrine/
313 ls
314 git pull origin develop
315 tmux a
316 ls
317 git clone https://github.com/Certbot/Certbot
318 ll
319 cd Certbot/
320 ls
321 ./certbot-auto certonly -w ../ohwardvitrine/src/assets/ -d ohward.com
322 sudo dpkg --configure -a
323 ./certbot-auto certonly -w ../ohwardvitrine/src/assets/ -d ohward.com
324 tmux a
325 ./certbot-auto -h
326 ./certbot-auto certonly -h
327 ls
328 ls -l .
329 ls -l ..
330 cat README.rst
331 ./certbot-auto certonly -d ohward.com
332 ./certbot-auto certonly -w ../ohwardvitrine/src/assets/ -d ohward.com
333 ls
334 ./certbot-auto certonly -w ../ohwardvitrine/src/ -d ohward.com
335 ls
336 ls ../ohwardvitrine/src/
337 ls ../ohwardvitrine/src/assets/
338 tmux a
339 ./certbot-auto certonly -w ../ohwardvitrine/src/assets/.certs-challenge/ -d ohward.com
340 echo "ok" > ../ohwardvitrine/src/assets/.certs-challenge/bonjour
341 ls ../ohwardvitrine/src/assets/
342 ls ../ohwardvitrine/src/assets/.certs-challenge/
343 cd ../ohwardvitrine/src/assets/.certs-challenge/
344 ls
345 ls -l
346 cat bonjour
347 tmux a
348 cd -
349 tmux a
350 cd ohwardvitrine/
351 git pull origin develop
352 ls
353 cat angular.json
354 cat angular.json | less
355 ls src/assets/.certs-challenge/
356 ls src/assets/.certs-challenge/bonjour
357 cat angular.json | less
358 touch src/assets/.certs-challenge/toto
359 echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches
360 touch src/assets/.certs-challenge/toto
361 touch src/assets/.certs-challenge/tot
362 echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo syctl -p
363 echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
364 touch src/assets/.certs-challenge/tota
365 rm src/assets/.certs-challenge/t*
366 ls src/assets/.certs-challenge/
367 ../Certbot/certbot-auto certonly --standalone -d ohward.com
368 ls /etc/letsencrypt/live/ohward.com
369 sudo ls /etc/letsencrypt/live/ohward.com
370 echo "set -g mouse on" >> ~/.tmux.conf
371 service nginx stop
372 service
373 service --status-all
374 cd /etc/letsencrypt/live/
375 ls
376 sudo su
377 ../Certbot/certbot-auto certonly --standalone -d ohward.com
378 sudo su
379 ls
380 ls -l ..
381 cd ..
382 sudo su
383 cd ohwardvitrine/
384 sudo ng serve --host 0.0.0.0 --port 80
385 sudo ng serve --host 0.0.0.0 --port 80 --disableHostCheck true
386 cat angular.json | less
387 sudo ng serve --host 0.0.0.0 --port 80 --disableHostCheck true
388 sudo ng serve --host 0.0.0.0 --port 80 --disableHostCheck true --ssl true --sslkey /etc/letsencrypt/live/ohward.com/privkey.pem --sslcert /etc/letsencrypt/live/ohward.com/cert.pem
389 sudo ng serve --host 0.0.0.0 --port 80 --disableHostCheck true --ssl true --ssl-key /etc/letsencrypt/live/ohward.com/privkey.pem --ssl-cert /etc/letsencrypt/live/ohward.com/cert.pem
390 sudo ng serve --host 0.0.0.0 --port 80 --disableHostCheck true
391 sudo ng serve --host 0.0.0.0 --disableHostCheck true --ssl true --ssl-key /etc/letsencrypt/live/ohward.com/privkey.pem --ssl-cert /etc/letsencrypt/live/ohward.com/cert.pem
392 sudo ng serve --host 0.0.0.0 --port 80 --disableHostCheck true
393 sudo ng serve --ssl 1 --ssl-cert ../fullchain.pem --sssl-key ../privkey.pem
394 sudo ng serve --ssl 1 --ssl-cert ../fullchain.pem --ssl-key ../privkey.pem
395 sudo ng serve --ssl true --ssl-cert ../fullchain.pem --ssl-key ../privkey.pem
396 sudo ng serve --port 443 --ssl true --ssl-cert ../fullchain.pem --ssl-key ../privkey.pem
397 history
398 sudo ng serve --port 443 --host 0.0.0.0 --ssl true --ssl-cert ../fullchain.pem --ssl-key ../privkey.pem
399 sudo ng serve --port 443 --disableHostCheck
400 sudo ng serve --port 443 --host 0.0.0.0 --disableHostCheck
401 sudo ng serve --port 80 --host 0.0.0.0 --disableHostCheck
402 sudo ng serve --port 443 --host 0.0.0.0 --disableHostCheck
403 sudo ng serve --port 443 --host 0.0.0.0 --ssl true --ssl-cert ../fullchain.pem --ssl-key ../privkey.pem
404 sudo ng serve --port 443 --host 0.0.0.0 --ssl true --ssl-cert ../fullchain.pem --ssl-key ../privkey.pem --disableHostCheck
405 tmux ls
406 tmux a
407 tmux
408 cd ohwardvitrine/
409 tmux ls
410 tmux a -t 0
411 tmux ls
412 tmux
413 tmux a
414 service apache2 status
415 ls
416 git status
417 ls src/assets/.certs-challenge/
418 rm src/assets/.certs-challenge/bonjour
419 git status
420 git add .
421 git commit -m "Save 13/07/2020"
422 git push origin develop
423 git status
424 git add .
425 git commit -m "Save 13/07/2020 bis"
426 git push origin develop
427 git pull origin develop
428 git status
429 git status
430 git add src/assets/documents/
431 git add src/assets/pictures/
432 git status
433 git add src/assets/data/
434 git commit -m "Save 12/07/2020"
435 git push origin develop
436 ls
437 sudo ng serve --port 443 --host 0.0.0.0 --ssl true --ssl-cert ../fullchain.pem --ssl-key ../privkey.pem --disableHostCheck
438 ls
439 sudo ng serve --port 443 --host 0.0.0.0 --ssl true --ssl-cert ../fullchain.pem --ssl-key ../privkey.pem --disableHostCheck
440 cd ohwardvitrine/
441 tmux
442 tmux a
443 ls
444 ls Certbot/
445 sudo su
446 tmux a
447 ls
448 ls -l
449 tmux a
450 ./Certbot/certbot-auto certonly --standalone -d ohward.com
451 ls Certbot/
452 sudo ./Certbot/certbot-auto certonly --standalone -d ohward.com
453 sudo su
454 ./Certbot/certbot-auto certonly --standalone -d ohward.com
455 sudo ./Certbot/certbot-auto certonly --standalone -d ohward.com
456 netstat -ln
457 service apache2 stop
458 sudo service apache2 stop
459 netstat -ln
460 sudo ./Certbot/certbot-auto certonly --standalone -d ohward.com
461 netstat -ln
462 tmux a
463 sudo ./Certbot/certbot-auto -h
464 sudo ./Certbot/certbot-auto certificates
465 tmux a
466 service apache2 status
467 service apache2 start
468 sudo service apache2 start
469 service apache2 status
470 ls /lib/systemd/system/
471 cat /lib/systemd/system/apache2.service
472 cat /lib/systemd/system/apache2.service.d/apache2-systemd.conf
473 service apache2 status
474 cat /etc/apache2/httpd.conf
475 cat /etc/apache2/sites-available/000-default.conf
476 apt-get update
477 do-release-upgrade
478 apt-get update
479 Reading package lists... Done
480 E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
481 E: Unable to lock directory /var/lib/apt/lists/
482 W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission de nied)
483 sudo su
484 cd etc
485 list
486 ls
487 cd ohwardvitrine
488 cd etc
489 cd var
490 ls
491 cd e2e
492 ls
493 cd src
494 ls
495 cd
496 cd etc*
497 service nginx stop
498 certbot-auto renew
499 certbot-auto certificates
500 certbot
501 service nginx stop
502 git pull origin develop
503 sudo ng serve --port 443 --host 0.0.0.0 --ssl true --ssl-cert ../fullchain.pem --ssl-key ../privkey.pem --disableHostCheck
504 service apache2 status
505 git status
506 git add .
507 git commit -m "Save 16/07/2020"
508 git push origin develop
509 git pull origin develop
510 emacs src/assets/i18n/fr.json
511 git status
512 git add .
513 git commit -m "Save 16/07/2020"
514 git push origin develop
515 git pull origin develop
516 ls
517 ls ..
518 ls -l ..
519 ls
520 ../Certbot/certbot-auto certonly --standalone -d ohward.com,www.ohward.com
521 service apache2 stop
522 sudo su
523 ../Certbot/certbot-auto certonly --standalone -d ohward.com,www.ohward.com
524 service apache2 start
525 sudo service apache2 start
526 git pull origin develop
527 git status
528 git add .
529 git commit -m ""
530 git commit -m "Save 17/07/2020"
531 git push origin develop
532 git status
533 git add .
534 git commit -m "Save 18/07/2020"
535 git push origin develop
536 git pull origin develop
537 ls ..
538 ls /etc/letsencrypt/
539 ls /etc/letsencrypt/live/
540 sudo ls /etc/letsencrypt/live/
541 sudo ls /etc/letsencrypt/live/ohward.com
542 sudo su
543 git pull origin develop
544 git status
545 git add .
546 git commit -m "Save 08/08/2020"
547 git push origin develop
548 git status
549 git pull origin develop
550 git status
551 git pull origin develop
552 git add .
553 git commit -m "Save 13/08/2020"
554 git push origin develop
555 git log --oneline
556 git status
557 git add .
558 git commit -m "Save 13/09/2020"
559 git push origin develop
560 git status
561 git add .
562 git commit -m "Save 10/15/2020"
563 git push origin develop
564 ls
565 ls ..
566 ls
567 cd ..
568 ls -l
569 ls /etc/letsencrypt/live/
570 sudo su
571 ls -l
572 ls ..
573 mv ../fullchain.pem ./
574 sudo mv ../fullchain.pem ./
575 sudo mv ../privkey.pem ./
576 ls -l
577 sudo su
578 sudo ./Certbot/certbot-auto certificates
579 sudo su
580 history
What is the user those commands are from?
Seems the command to start your express server is (executed from the home directory of the user):
sudo ng serve --port 443 --host 0.0.0.0 --ssl true --ssl-cert ../fullchain.pem --ssl-key ../privkey.pem --disableHostCheck
And also seems they are copying the fullchain.pem and privkey.pem files to that directory instead of using directly the entire path to the right files, instead of use the above command maybe you should use this command to start the express server and use the renewed certificates:
sudo ng serve --port 443 --host 0.0.0.0 --ssl true --ssl-cert /etc/letsencrypt/live/ohward.com/fullchain.pem --ssl-key /etc/letsencrypt/live/ohward.com/privkey.pem --disableHostCheck
Give it a try.