Fix bug in example code
Fix bug in example code

When the key file is locked with a passphrase, it must be set FIRST,
before the key is loaded, otherwise it will fail to load, giving this
warning:

    openssl_sign(): supplied key param cannot be coerced into a private key

simplesamlphp/xmlseclibs,robrichards/xmlseclibs