Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.
PLEASE READ - Webmaster Support Forum
This forum will be retired in the near future. Please direct all queries to our dedicated GitHub support page https://github.com/vatsimnetwork/developer-info/discussions 
Here you can find documentation on our services and we are continuing to migrate pertinent information into the Wiki pages https://github.com/vatsimnetwork/developer-info/wiki

[Resolved] Public key not found


Michael Shamash 1281144
 Share

Recommended Posts

Michael Shamash 1281144
Posted
Posted

Hi all,

 

I finally got the base uploaded to my system for the SSO but am getting this "Public key not found" error since I am not using a public key. The variable cert is set to this

<<<EOD
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
EOD;

But even if I set the variable cert empty, I get

An error occurred

Error message: 

 

Please let me know how I can fix this.

Thanks!

Mike

Michael Shamash

Toronto FIR Webmaster

-------------------------

Toronto Flight Information Region

[email protected] | http://www.czyz.ca

Like us or Follow us on Facebook and Twitter

Link to comment
Share on other sites

Kieran Hardern
Posted
Posted

As you aren't using a public key, you need to use HMAC, have you set:

 

$sso['method'] = 'HMAC';

 

?

Link to comment
Share on other sites

Michael Shamash 1281144
Posted
Posted
As you aren't using a public key, you need to use HMAC, have you set:

 

$sso['method'] = 'HMAC';

 

?

 

I see. Ok, now that I set that, I get another error:

Fatal error: Cl[Mod - Happy Thoughts] 'SSO_OAuthSignatureMethod_HMAC_SHA1' not found in /var/www/sso/SSO.cl[Mod - Happy Thoughts].php on line 152

 

Is that to do with the OAuth installation on my server?

 

Thanks,

Mike

Michael Shamash

Toronto FIR Webmaster

-------------------------

Toronto Flight Information Region

[email protected] | http://www.czyz.ca

Like us or Follow us on Facebook and Twitter

Link to comment
Share on other sites

Kieran Hardern
Posted
Posted

No that's a mistake in my code. I've updated the repository with the correction, re-download "SSO.cl[Mod - Happy Thoughts].php" and use that instead.

 

https://bitbucket.org/KHardern/vatsim-sso-demo/src/

Link to comment
Share on other sites

Michael Shamash 1281144
Posted
Posted
No that's a mistake in my code. I've updated the repository with the correction, re-download "SSO.cl[Mod - Happy Thoughts].php" and use that instead.

 

https://bitbucket.org/KHardern/vatsim-sso-demo/src/

That fixed it, "Login Success"

Thanks, now to get developing with it!

Michael Shamash

Toronto FIR Webmaster

-------------------------

Toronto Flight Information Region

[email protected] | http://www.czyz.ca

Like us or Follow us on Facebook and Twitter

Link to comment
Share on other sites

 Share