Apple - failed to decode PEM block containing private key #2106
-
I am trying to implement social sign in. Google was done very easily but facing an issue with Apple PS : The text is word wraped, actually the key is in one single line Any Idea? If anyone has already done this, please let me know. Thank you Also, for sign in with LinkedIn, I guess I have to use generic option? right? Logs : | time=2022-01-04T17:49:46Z level=info msg=started handling request http_request=map[headers:map[accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8 accept-encoding:gzip, deflate accept-language:en-US,en;q=0.5 connection:keep-alive content-length:126 content-type:application/x-www-form-urlencoded cookie:io=sCqOuekINMTSggRcAAAH; csrf_token_806060ca5bf70dff3caa0e5c860002aade9d470a5a4dce73bcfa7ba10778f481=WyP5nSKRutwidQRH0rJfRAF2PsN4bVp+6BCviM0gvcY= dnt:1 origin:http://127.0.0.1:8080 referer:http://127.0.0.1:8080/ sec-fetch-dest:document sec-fetch-mode:navigate sec-fetch-site:cross-site sec-fetch-user:?1 upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0] host:127.0.0.1:4433 method:POST path:/self-service/login query:flow=0aa9bebf-deda-4f7c-a33b-57f8a265d84d remote:172.31.0.1:33260 scheme:http] kratos_1 | time=2022-01-04T17:49:46Z level=info msg=Encountered self-service login error. audience=audit error=map[message:failed to decode PEM block containing private key] http_request=map[headers:map[accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8 accept-encoding:gzip, deflate accept-language:en-US,en;q=0.5 connection:keep-alive content-length:126 content-type:application/x-www-form-urlencoded cookie:io=sCqOuekINMTSggRcAAAH; csrf_token_806060ca5bf70dff3caa0e5c860002aade9d470a5a4dce73bcfa7ba10778f481=WyP5nSKRutwidQRH0rJfRAF2PsN4bVp+6BCviM0gvcY= dnt:1 origin:http://127.0.0.1:8080 referer:http://127.0.0.1:8080/ sec-fetch-dest:document sec-fetch-mode:navigate sec-fetch-site:cross-site sec-fetch-user:?1 upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0] host:127.0.0.1:4433 method:POST path:/self-service/login query:flow=0aa9bebf-deda-4f7c-a33b-57f8a265d84d remote:172.31.0.1:33260 scheme:http] login_flow=&{0aa9bebf-deda-4f7c-a33b-57f8a265d84d 033ca5f0-cf30-4c6b-902a-e511ae7adde7 browser 2022-01-04 18:49:05.54143551 +0000 UTC 2022-01-04 17:49:05.54143551 +0000 UTC [123 125] http://127.0.0.1:4433/self-service/login/browser 0xc000f44230 2022-01-04 17:49:05.54771 +0000 UTC 2022-01-04 17:49:05.54771 +0000 UTC vjw8VxDL9VGyDneflDthyiNOwJt3CVmT1ow2Vf+ZTVblH8XKMlpPjZB7c9hGiT6OIjj+WA9kA+0+nJndMrnwkA== false aal1} service_name=Ory Kratos service_version=v0.8.0-alpha.3 kratos_1 | time=2022-01-04T17:49:46Z level=error msg=An error occurred and is being forwarded to the error user interface. audience=application error=map[message:failed to decode PEM block containing private key] http_request=map[headers:map[accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8 accept-encoding:gzip, deflate accept-language:en-US,en;q=0.5 connection:keep-alive content-length:126 content-type:application/x-www-form-urlencoded cookie:io=sCqOuekINMTSggRcAAAH; csrf_token_806060ca5bf70dff3caa0e5c860002aade9d470a5a4dce73bcfa7ba10778f481=WyP5nSKRutwidQRH0rJfRAF2PsN4bVp+6BCviM0gvcY= dnt:1 origin:http://127.0.0.1:8080 referer:http://127.0.0.1:8080/ sec-fetch-dest:document sec-fetch-mode:navigate sec-fetch-site:cross-site sec-fetch-user:?1 upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0] host:127.0.0.1:4433 method:POST path:/self-service/login query:flow=0aa9bebf-deda-4f7c-a33b-57f8a265d84d remote:172.31.0.1:33260 scheme:http] service_name=Ory Kratos service_version=v0.8.0-alpha.3 kratos_1 | time=2022-01-04T17:49:46Z level=info msg=completed handling request http_request=map[headers:map[accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8 accept-encoding:gzip, deflate accept-language:en-US,en;q=0.5 connection:keep-alive content-length:126 content-type:application/x-www-form-urlencoded cookie:io=sCqOuekINMTSggRcAAAH; csrf_token_806060ca5bf70dff3caa0e5c860002aade9d470a5a4dce73bcfa7ba10778f481=WyP5nSKRutwidQRH0rJfRAF2PsN4bVp+6BCviM0gvcY= dnt:1 origin:http://127.0.0.1:8080 referer:http://127.0.0.1:8080/ sec-fetch-dest:document sec-fetch-mode:navigate sec-fetch-site:cross-site sec-fetch-user:?1 upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0] host:127.0.0.1:4433 method:POST path:/self-service/login query:flow=0aa9bebf-deda-4f7c-a33b-57f8a265d84d remote:172.31.0.1:33260 scheme:http] http_response=map[headers:map[access-control-allow-credentials:true access-control-allow-origin:http://127.0.0.1:8080 access-control-expose-headers:Content-Type, Set-Cookie cache-control:private, no-cache, no-store, must-revalidate location:http://127.0.0.1:8080/error?id=0dcd1845-ee25-48bf-8e67-3c6cbbaef7ea vary:Origin] size:0 status:302 text_status:Found took:18.368967ms] |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 21 replies
-
Hello @jaya-kumar-softobiz Courtesy of @themech
It has been a few months, maybe we can pick this up and complete it. If @themech could chime in, I would be very grateful as he is probably most skilled in this issue now 😁. |
Beta Was this translation helpful? Give feedback.
-
@vinckr hey, what about sign in with LinkedIn ? I mean I don't see it in the provider list here So I have to use generic provider for it I guess ? |
Beta Was this translation helpful? Give feedback.
Hello @jaya-kumar-softobiz
We did have a longer discussion about this in the Slack, will copy it over so it does not get lost:
(Reference for the full discussion)
Courtesy of @themech