-
Hello everyone, i am trying to use the graph api to upload a file to sharepoint using php. I am trying to follow this example, but I am confused: Why is only the PHP example requiring both the certificate AND private key + pass to use the ClientCredentialCertificateContext ? Hopefully someone can shine some light on this for me :) thank you very much. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @tnup Certificate authentication MAY require up to three things one the confidential side to work:
Depending on how the certificate/key pair was generated, it might be in two separate files, or in a single file. In the later case, simply pass the same path twice. All of that ends up calling the open ssl get private key method I hope this helps. Let us know if you have any additional comments or questions. |
Beta Was this translation helpful? Give feedback.
-
thank you very much for your detailed explanation @baywet, I was able to get the sdk to work using the php example, but still not quite understand why the php version of the library requires both the public key AND the private key where the examples in the other languages (c#, Typescript etc) requires only one... |
Beta Was this translation helpful? Give feedback.
Hi @tnup
Thank you for using kiota and for reaching out.
Certificate authentication MAY require up to three things one the confidential side to work: