Have found the following example of OAuth server http://oauth.googlecode.com/svn/code/php/OAuth_TestServer.php
找到了以下OAuth服务器示例http://oauth.googlecode.com/svn/code/php/OAuth_TestServer.php
But it is unclear for me 1. How I should generate certificates
但我不清楚1.我应该如何生成证书
-
How I should specify access token/access token secret/request token/request token secret, should they stored in database? Should it regenerated for each request? What else I should store in database?
如果它们存储在数据库中,我应该如何指定访问令牌/访问令牌秘密/请求令牌/请求令牌秘密?它应该为每个请求重新生成吗?我还应该在数据库中存储什么?
-
Where should I implement the verification of Access token?
我应该在哪里实现Access令牌的验证?
Please advice
请指教
1 个解决方案
#1
3
To Generate Certificates, you need to create a CSR (Certificate Signing Request)
要生成证书,您需要创建CSR(证书签名请求)
If you have access to cPanel, then you can generate a CSR easily. If you don't then you will need to download some software to generate a CSR.
如果您有权访问cPanel,则可以轻松生成CSR。如果不这样做,则需要下载一些软件来生成CSR。
After you have your CSR, you can head over to CACert for a free certificate. However, be warned: not all modern browsers trust CACert, so you might get warnings. If you don't want this, you will have to pay for a certificate from a professional provider, like VeriSign.
获得CSR后,您可以前往CACert获取免费证书。但是,请注意:并非所有现代浏览器都信任CACert,因此您可能会收到警告。如果您不想这样,您将需要支付VeriSign等专业提供商的证书。
#1
3
To Generate Certificates, you need to create a CSR (Certificate Signing Request)
要生成证书,您需要创建CSR(证书签名请求)
If you have access to cPanel, then you can generate a CSR easily. If you don't then you will need to download some software to generate a CSR.
如果您有权访问cPanel,则可以轻松生成CSR。如果不这样做,则需要下载一些软件来生成CSR。
After you have your CSR, you can head over to CACert for a free certificate. However, be warned: not all modern browsers trust CACert, so you might get warnings. If you don't want this, you will have to pay for a certificate from a professional provider, like VeriSign.
获得CSR后,您可以前往CACert获取免费证书。但是,请注意:并非所有现代浏览器都信任CACert,因此您可能会收到警告。如果您不想这样,您将需要支付VeriSign等专业提供商的证书。