Comments (27)
your problem is not with HFS, but with letsencrypt.
If you want to get your free certificate from them, you have to go here https://certbot.eff.org/instructions?ws=other&os=windows
If you don't like their way, your alternatives are
- get the certificate from another company (probably paying)
- use the basic certificate that HFS is able to produce, but you get the ugly warning message https://github.com/rejetto/hfs/wiki/HTTPS
I hope that I'll be able soon to focus on integration of letsencrypt, to make this stuff easier.
from hfs.
letsencrypt gives you private key, I know because I use it and I get this file "privkey.pem".
from hfs.
how to obtain this private key??, i dont see this!
from hfs.
I will assume you are on windows.
Did you use certbot to get your certificate?
If so, you would have your certificate files in the 'C:/certbot/live/#your domain#/'
from hfs.
@SanokKule sorry, i use sub-domain and i dont install certbot
from hfs.
Then what did you use to get your certificate?
from hfs.
@SanokKule i download here
from hfs.
ok thanks for help!!
from hfs.
from hfs.
certbot calls "webroot" the folder of your disk that is served by your web server when accessing the root (like google.com , without any folder like google.com/folder )
Most web servers have the root associated to a folder on a disk.
Root is called "Home" in HFS.
Point is: by default HFS' root is virtual. Virtual = not associated to any folder on your disk. This is the "source" option in HFS.
![image](https://private-user-images.githubusercontent.com/1367199/246041815-5d815d0f-25f9-46a0-888f-23f8fa9d3172.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2MDYyMzgsIm5iZiI6MTcxODYwNTkzOCwicGF0aCI6Ii8xMzY3MTk5LzI0NjA0MTgxNS01ZDgxNWQwZi0yNWY5LTQ2YTAtODg4Zi0yM2Y4ZmE5ZDMxNzIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTdUMDYzMjE4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmFiMGRiYzIzN2ZiYjQ3ODkyZmY2NTQxYWI3YTI5MTUyNDdmZTY3MTZlMGJlMjQ0NzE2MDUwZjdhNmMyMzE5YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.4ev0CQjX32TUOIFPJSJHnrA5Ie3A2kRXrga4Ils5SNM)
You are trying to use certbot in "webroot" mode, but this mode needs you to have the home of HFS associated to a folder on your disk.
Your options are
- you don't use webroot mode (I don't)
- you continue, but need to set the "source" of the "home" of HFS.
If you set it a folder, all the files in this folder will appear in HFS. So, you may want to set it to an empty folder. What will happen is that at some point certbot will add a file inside this folder, for a few seconds, necessary to create or renew your certificate.
from hfs.
@rejetto thanks!
from hfs.
i will ask more soon, so i keep issue open
from hfs.
help part 2
i use duckdns, idk what happend!
from hfs.
so, you chose option 2. It says you must havean HTTP server running on the same machine. Do you have HFS running on the same machine?
from hfs.
@rejetto i use HFS in THIS machine!
from hfs.
@BussyBakks, your server should be using port 80 and the Home
in your vfs should have D:\share
(if that's where you want that to be) as the source.
Server also needs to be accessible from outside your network by the domain you are trying to get a certificate for.
After that you can try running certbot again.
from hfs.
@SanokKule i link my external ip to duckdns, but it isnt work!
how can i access my HFS in duckdns's ip?
from hfs.
Did you forward port 80 to your pc in your wi-fi router?
from hfs.
@SanokKule yes i forwarded port 80 in router
but still doesnt work
from hfs.
If you add some file into the D:\share
folder, do they show up in your server?
from hfs.
@SanokKule i link my external ip to duckdns, but it isnt work! how can i access my HFS in duckdns's ip?
It might be that your ISP is blocking some ports, so if you can't access your hfs from your ddns domain despite it pointing to your ip, you might need to talk with your ISP and ask them to unblock the ports.
Can other people access your server if they enter your ip into the browser?
from hfs.
@SanokKule no, i dont share to anyone, just my family and i need THIS server access to every places!
from hfs.
But is your server accessible from the internet?
from hfs.
@SanokKule no
from hfs.
The server MUST be accessible from the internet to get the certificate.
If the server is not accessible from the internet then your ddns will be useless too, wouldn't it?
from hfs.
@SanokKule no, i dont share to anyone, just my family and i need THIS server access to every places!
"every places" = the internet.
You can restrict access some way, like with accounts and permissions.
from hfs.
ok i give up, it toooo confusing with me, thanks for help:D
from hfs.
Related Issues (20)
- add total uptime to Monitoring tab HOT 6
- hfs login error HOT 4
- Progress in CMD HOT 3
- When uploading multiple files, the files will be prefixed with hfs$ for a long time. HOT 2
- FRP warn HOT 1
- Can I directly call the local program when opening a file? HOT 1
- "Since: {date}" for the sent/received in Monitoring tab HOT 1
- Debian 12 x64 start problem HOT 1
- Listen only on all ipv4/ipv6 HOT 7
- Cannot successfully change password as user HOT 9
- Black screen Log window HOT 7
- cant download more than 1GB outside my network. HOT 2
- different address HOT 1
- How to customize logo in hfs HOT 7
- The browser's header icon in the hfs log cannot be displayed HOT 7
- How to customize the .hfs directory in the Linux version of hfs HOT 3
- When will hfs support webdav protocol? HOT 1
- Tray Icon doesn't work right (hfs doesn't open/no menu) HOT 2
- Fix please this feature HOT 4
- Bypass Browser version restriction HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hfs.