Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

certification problem #34

Open
MattiaMarchiorato opened this issue Sep 20, 2023 · 2 comments
Open

certification problem #34

MattiaMarchiorato opened this issue Sep 20, 2023 · 2 comments

Comments

@MattiaMarchiorato
Copy link

Hello, first of all thanks for this plugin.
We have some issue, when we try to issue e certrificate we receive a 404.
The /.well-known folder not exists in the file system and is temporary created when we call a create method right?
If i manually create the folder and visit the url i can see the content correctly, there is something that we are missing.

Thanks for help

MM

@Daanra
Copy link
Owner

Daanra commented Sep 29, 2023

Did you see this part from the README?

Note:

You somehow have to return a stored challenge whenever it it retrieved from the /.well-known/acme-challenge endpoint. You could do this by configuring NGINX/Apache appropriately or by registering a route:

Route::get('/.well-known/acme-challenge/{token}', function (string $token) {
return \Illuminate\Support\Facades\Storage::get('public/.well-known/acme-challenge/' . $token);
})

Sometimes the /.well-known/ prefix is disabled by default in the NGINX/Apache config (see #4). Make sure it is forwarded to your Laravel application if you want Laravel to return the challenge.

So you are responsible of returning the challenge yourself. Either by configuring Laravel to return it as shown above, or by letting NGINX/Apache return it as a static file.

@MattiaMarchiorato
Copy link
Author

Hello @Daanra

Of course i read the docs and readme, an we set the route in laravel to return the challenge but we receive a 404 when we try to issue e certificate.
If we do a dd inside the route and we visit it from the browser is working.

Thanks

MM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants