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

sends GET request to an account URL #93

Open
creatica-soft opened this issue Jul 10, 2022 · 0 comments
Open

sends GET request to an account URL #93

creatica-soft opened this issue Jul 10, 2022 · 0 comments

Comments

@creatica-soft
Copy link

Hi, I think sending GET request to an account URL is not allowed by RFC8555, only directory and newNonce can get GET requests. The account URL should receive POST or POST-as-GET requests.

I have this debug message:
[2022-07-10T09:45:58.194442+00:00] acme.debug: Request for https://pki.techcorpapps.com/acme/new-account via POST has been processed with status 405: {"type":"urn:ietf:params:acme:error:malformed","detail":"method not allowed"} {"url":"https://pki.techcorpapps.com/acme/new-account","status":405,"body":"{\"type\":\"urn:ietf:params:acme:error:malformed\",\"detail\":\"method not allowed"}"}
Kelunik\Acme\AcmeException: Unable to find account with given private key in phar:///home/alpine/acme-client.phar/vendor/kelunik/acme/src/AcmeClient.php:268

POST request to a new account is actually processed correctly with account url returned in Location and status code either 200 or 201. But then the client sends GET request to the account URL, which fails because it should not.

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

1 participant