And the logs (in Azure) :
2022-06-24T09:17:22.684 [Information] Content-Type: application/jwtContent-Length: 1105
2022-06-24T09:17:22.684 [Information] JWT2 Token:
2022-06-24T09:17:22.684 [Information] eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI0OTM1MWQwYy04MjViLTRmZTgtYjNjOC01Y2NmZjM1MzM1MTIiLCJzdWIiOiI3MmZkYTlmYS0xYTNjLTQzOWItOTI4MS0wNDMzNTQwMmZhYTkiLCJleHAiOjE2NTY2NjcwNDIsImlhdCI6MTY1NjA2MjI0MiwibWVuZGVyLnRlbmFudCI6IjYyNDQ0YTM5MjY2OTQ1ODUwZTMyZDhjMyIsIm1lbmRlci51c2VyIjp0cnVlLCJpc3MiOiJNZW5kZXIgVXNlcnMiLCJzY3AiOiJtZW5kZXIuKiIsIm1lbmRlci5wbGFuIjoiZW50ZXJwcmlzZSIsIm1lbmRlci50cmlhbCI6dHJ1ZSwibWVuZGVyLmFkZG9ucyI6W3sibmFtZSI6ImNvbmZpZ3VyZSIsImVuYWJsZWQiOnRydWV9LHsibmFtZSI6InRyb3VibGVzaG9vdCIsImVuYWJsZWQiOnRydWV9LHsibmFtZSI6Im1vbml0b3IiLCJlbmFibGVkIjp0cnVlfV0sIm5iZiI6MTY1NjA2MjI0Mn0.v782Jg560ccCCFbx8sk7JjXrRxEqoVviNofDv6NUbcaEUTAiPDJ_zZcMwLAA-CeNjMnHkMgO-JqAGTjp6pd9F8QQUciV68S9AUhG6DQc8ch7BbsYqW3gWNd0NvhJyP18fgdo9jvqbO6n6-yUgzJ9pV0CFhMRL1XtBaOqUgJLQLMl9CVWWbxiBI_xMiOs2b6FuAaZzDxflnzykVOmjRRukTcfqU9CpTaWjpNcA2KEbIs7mixbNEzKwD0R5YQ-EQCALb17GZbuXxg1HtyiDDA6GLFURiVsxSWHqqo-BOoVgIydDQfZzNgh2fBqg1e-VqYIxcvfb3IvT-UPXnqjIFWZLdm8kQ6zqn2cjY0FptfdFtDM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zNgh2fBqg1e-VqYIxcvfb3IvT-UPXnqjIFWZLdm8kQ6zqn2cjY0FptfdFtDM1Kmd2OqYkj19dnWyeYzEwVZ1SRapCGAQ9Zw2EeL7WCFgHV_DlmUOlZU1qbfW2eWekCDCKtCULvfOTygExtBkHvCo7q1dnx-dzbmEWngulpPFviy2aETcDOeJf1MeMcscWT1k9au3eykBwE-M0WUb
2022-06-24T09:17:22.689 [Information] format de la public key en PEM
2022-06-24T09:17:22.689 [Information] -----BEGIN PUBLIC KEY-----AToAAQALAAMAsgAgg3GXZ0SEs/gakMyNRqXXJP1S124GUgtk8qHaGzMUaaoABgCAAEMAEAgAAAAAAAEAl7wxkgjflIV5I7b4hicWAcCvoGZOkQYoPp8C5N8HDZPGqsQRQ0TkIY/VIKOwxMgSa7rJrmhsam/9UT3dZxHRYo4WSchKdV8aIe4U/syRmZmKTfQ+MGpbng5GKfrVqtnw3h0e8vPTgodCKAmT2uIil1A8XGSeFED8mlbsDjUO2Ga5WHWT3XNhujsECYWn8JPYzAk07EPBcQrDqVzScOFXWmaQ0dmF80QQ6L5EVwfO2cxnJ5PnRz8jfmbTIQ7q1wgzgeFYqHtXuKmYah0j+UY1ntPnOclbzprlW/IYVNOmDQYsK8kAv5dT1CKze0WS+dwAtyTS+108kwLNWFnt2WuQ2Q==-----END PUBLIC KEY-----
2022-06-24T09:17:22.689 [Information] tpmmenderpoc
2022-06-24T09:17:22.695 [Information] ---------------param mender--------------------
2022-06-24T09:17:22.705 [Information] -----BEGIN PUBLIC KEY-----AToAAQALAAMAsgAgg3GXZ0SEs/gakMyNRqXXJP1S124GUgtk8qHaGzMUaaoABgCAAEMAEAgAAAAAAAEAl7wxkgjflIV5I7b4hicWAcCvoGZOkQYoPp8C5N8HDZPGqsQRQ0TkIY/VIKOwxMgSa7rJrmhsam/9UT3dZxHRYo4WSchKdV8aIe4U/syRmZmKTfQ+MGpbng5GKfrVqtnw3h0e8vPTgodCKAmT2uIil1A8XGSeFED8mlbsDjUO2Ga5WHWT3XNhujsECYWn8JPYzAk07EPBcQrDqVzScOFXWmaQ0dmF80QQ6L5EVwfO2cxnJ5PnRz8jfmbTIQ7q1wgzgeFYqHtXuKmYah0j+UY1ntPnOclbzprlW/IYVNOmDQYsK8kAv5dT1CKze0WS+dwAtyTS+108kwLNWFnt2WuQ2Q==-----END PUBLIC KEY-----
2022-06-24T09:17:22.706 [Information] tpmmenderpoc
2022-06-24T09:17:22.706 [Information] ---------------body--------------------
2022-06-24T09:17:22.706 [Information] tpmmenderpoc
2022-06-24T09:17:23.094 [Information] mender preauth error
2022-06-24T09:17:23.094 [Information] BadRequest
2022-06-24T09:17:23.094 [Information] Bad Request
2022-06-24T09:17:23.095 [Information] Executed ‘PreAuthMenderFunction’ (Succeeded, Id=1fc7969b-ca7e-47a5-9996-5b081058eeb8, Duration=1413ms)
2022-06-24T09:18:39 No new trace in the past 1 min(s).
We can see the BadRequest at the end