dimafe6 / bank-id

BankID
MIT License
30 stars 26 forks source link

verify = false? #3

Closed puggan closed 6 years ago

puggan commented 6 years ago

Why is verify turned of in the exemple in the readme?

I using your code with verify, like this

// Create BankIDService
$bankIDService = new BankIDService(
    'https://appapi2.test.bankid.com/rp/v5/',
    $_SERVER["REMOTE_ADDR"],
    [
        'verify' =>  'PATH_TO_TEST_CERT.ca',
        'cert'   => 'PATH_TO_TEST_CERT.crt',
        'ssl_key'   => 'PATH_TO_TEST_CERT.key',
    ]
);
dimafe6 commented 6 years ago

You're right. verify = false is used for testing. I'll update the readme to demonstrate how to work with ssl. Thank you.