-
Notifications
You must be signed in to change notification settings - Fork 99
It's a fatal mistake. #67
Comments
Have you inserted your (email) information in the example script? If not, it's the same issue as #59. |
I didn't modify anything in the example at first, so I made the mistake above. Now I've changed the example to LOG_DEBUG, changed the domain name to 887d.com, and changed the email address. Please check the following error. Https://wuknet.net/ssl/LEClient/examples/dns_init.php 22-06-2019 00:59:28, function getLEDirectory (function get): 22-06-2019 00:59:29, function getNewNonce (function head): 22-06-2019 00:59:31, function getLEAccount (function post): Fatal error: Uncaught RuntimeException: Invalid response, header: HTTP/1.1 100 Continue Expires: Sat, 22 Jun 2019 00:59:30 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache HTTP/1.1 400 Bad Request Server: nginx Content-Type: application/problem+json Content-Length: 134 Link: https://acme-staging-v02.api.letsencrypt.org/directory;rel="index" Replay-Nonce: _rBMRISmuXhtffw_bu0W9SVDgbWnxFpXRrFKMqr1lGY Expires: Sat, 22 Jun 2019 00:59:31 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sat, 22 Jun 2019 00:59:31 GMT Connection: close in /home/jcc/wuknet/ssl/LEClient/src/LEConnector.php:150 Stack trace: #0 /home/jcc/wuknet/ssl/LEClient/src/LEConnector.php(187): LEClient\LEConnector->request('POST', 'https://acme-st...', '{"protected":"e...') #1 /home/jcc/wuknet/ssl/LEClient/src/LEAccount.php(114): LEClient\LEConnector->post('https://acme-st...', '{"protected":"e...') #2 /home/jcc/wuknet/ssl/LEClient/src/LEAccount.php(80): LEClient\LEAccount->getLEAccount() #3 /home/jcc in /home/jcc/wuknet/ssl/LEClient/src/LEConnector.php on line 150 |
Here is my code `<?php // Importing the classes. // Listing the contact information in case a new account has to be created. // Initiating the client instance. In this case using the staging server (argument 2) and outputting all status and debug information (argument 3). |
My best guess is that the attempt to run the script with the example data created account keys (or at least the account key directory). This gives it away: Array ( [type] => urn:ietf:params:acme:error:accountDoesNotExist [detail] => No account exists with the provided key [status] => 400 ) Try deleting the account key directory and run it again. |
Errors still exist. Is there any way to solve them? |
I just ran the script again on the link you posted. It doesn't give me the same error as before, instead it gives an error because you try to use the dummy function 'setDNSRecord'. The implementation to set a DNS record should be made by you, since it fully depends on the system/hosting etc. 22-06-2019 15:25:49, function getLEDirectory (function get): 22-06-2019 15:25:50, function getNewNonce (function head): 22-06-2019 15:25:53, function getLEAccount (function post): 22-06-2019 15:25:56, function getLEAccountData (function post): 22-06-2019 15:25:56, function LEClient __construct: 22-06-2019 15:25:57, function __construct (function get): 22-06-2019 15:25:58, function __construct (function get): 22-06-2019 15:26:00, function __construct (function get): Fatal error: Uncaught Error: Call to undefined function setDNSRecord() in /home/jcc/wuknet/ssl/LEClient/examples/dns_init.php:33 Stack trace: #0 {main} thrown in /home/jcc/wuknet/ssl/LEClient/examples/dns_init.php on line 33 Caution: I strongly recommend you disable this account (see documentation) after you finished testing the script, since the link and output (including keys) have been online, for everyone to see, now. |
Thank you, yourivw. This problem has been solved. |
I run and upload an example, running the website as follows:
https://wuknet.net/ssl/LEClient/examples/dns_init.php
PHP is version 7.1
Error:
Fatal error: Uncaught RuntimeException: Invalid response, header: HTTP/1.1 100 Continue Expires: Sun, 16 Jun 2019 02:21:41 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache HTTP/1.1 400 Bad Request Server: nginx Content-Type: application/problem+json Content-Length: 134 Link: https://acme-staging-v02.api.letsencrypt.org/directory;rel="index" Replay-Nonce: PO0tJRYghpbFjLxRJu5pSky7czYmDo4O0KZyi7bLkd8 Expires: Sun, 16 Jun 2019 02:21:41 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 16 Jun 2019 02:21:41 GMT Connection: close in /home/jcc/wuknet/ssl/LEClient/src/LEConnector.php:150 Stack trace: #0 /home/jcc/wuknet/ssl/LEClient/src/LEConnector.php(187): LEClient\LEConnector->request('POST', 'https://acme-st...', '{"protected":"e...') #1 /home/jcc/wuknet/ssl/LEClient/src/LEAccount.php(114): LEClient\LEConnector->post('https://acme-st...', '{"protected":"e...') #2 /home/jcc/wuknet/ssl/LEClient/src/LEAccount.php(80): LEClient\LEAccount->getLEAccount() #3 /home/jcc in /home/jcc/wuknet/ssl/LEClient/src/LEConnector.php on line 150
The text was updated successfully, but these errors were encountered: