Skip to content

Authentification using .pem certificate #88

Closed Answered by Sammyjo20
BorissSlinkovs asked this question in Q&A
Discussion options

You must be logged in to vote

You should use the cert Guzzle option in the defaultConfig array on the connector or if you have a different certificate I would recommend using an authenticator that adds the option.

Using Authenticators

class ServiceAuthenticator implements AuthenticatorInterface
{
    /**
     * @param string $certificatePath
     * @param string|null $certificatePassword
     * @param string|null $username
     * @param bool|null $testing
     */
    public function __construct(
        public string  $certificatePath,
        public ?string $certificatePassword = null,
    ) {
        //
    }

    /**
     * Apply the certificate configuration.
     *
     * @param SaloonRequest $request
     * @ret…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BorissSlinkovs
Comment options

Answer selected by Sammyjo20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants