yourivw / LEClient

An easy-to-use PHP ACME v2 client library, designed to be used with LetsEncrypt.
MIT License
204 stars 98 forks source link

Notice: Undefined index: agreement #34

Closed djdaca closed 6 years ago

djdaca commented 6 years ago

I have problem with PHP notice PHP Notice: Undefined index: agreement in .../vendor/yourivw/leclient/LEClient/src/LEAccount.php:129

In returned data from api is not agreement key.

Array ( [request] => POST https://acme-v02.api.letsencrypt.org/acme/acct/36057402 [header] => HTTP/1.1 200 OK Server: nginx Content-Type: application/json Content-Length: 875 Boulder-Requester: 36057402 Link: https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf;rel="terms-of-service" Replay-Nonce: GizlJhrzzEC1BSHXQK0a_JcXPSW9_T_DKLI1C3lLiYc X-Frame-Options: DENY Strict-Transport-Security: max-age=604800 Expires: Mon, 04 Jun 2018 12:30:07 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Mon, 04 Jun 2018 12:30:07 GMT Connection: keep-alive

[body] => Array
    (
        [id] => 36057402
        [key] => Array
            (
                [kty] => RSA
                [n] => osomet7sFqSb5SLUN6F7jnlDA47yryY9nerjtiUwfKWLk2nZ94ep_c4eGHmENkANgtlxZ4mAlryJkd4ltOftQ0N6jia2zkABWBlRZLMMHqv7V_xAmVra_iB5aFLvs5v0MdvEpv3hPYXT5swEN4iuRSWSygbyX_IiLjUsWRhmEwVqMNYYM-pwrWfBmWDJd6jirkTZC0V1m961HwVBtNz0yijofQUxwju8Z4UOBpUwFrH0_7eIjo3Bx8WVcEEThcQxGJAiq9YmqxH5msuCgXEPzaCTSjxRBAT-zVAq4KLfEIQFaRlodXI1X81YAA8YqHf-A_qLA0H2cEF69bw71aM5BejQlCHgCpP57_a9ZJ0mz7J1xmneCcA-cTP4S0RkQ1Ouhqvn97Lhwx0T3HxgSc5VC-s54YNyfzLPm9k0YxsnXE2LIrsK8Op4SYPRc4Zn9ORNsViQJ_fNWixgGkRaEMSY197v6C-rcQn6LNBhiEKNG-6sxdeNwwNEhIbXpu4aqLXVrHPYrcNZE2nFOlP11btWWOpZHkV2v8l9_KpP1K5mUEKQaS248yjRTiEkcmmuOqgU43up_BQEedjPpDinMuI-G58C7J9Z2755qPQfGVBhwuA3OhWdO5upTGU25mjfJRMoFt00b7xd43LyNljuiGCzm3_U9XLmV-1XrO_Lr4S-scs
                [e] => AQAB
            )

        [contact] => Array
            (
            )

        [initialIp] => 46.234.115.35
        [createdAt] => 2018-06-04T09:53:19Z
        [status] => valid
    )

)