[英]What do I need for a callback API service to connect to my server via SSL?
I need to use an API that passes information to a callback script on my server. 我需要使用将信息传递到服务器上的回调脚本的API。
The API connects using Secure Sockets Layer (SSL). 该API使用安全套接字层(SSL)连接。 I've never worked with SSL and I don't know if I need to get some kind of certificate to get it to work on my Server.
我从来没有使用过SSL,也不知道是否需要某种证书才能使其在服务器上工作。
I'm using PHP and these are all the current settings related to SSL that I could find via phpinfo(): 我正在使用PHP,这些是我可以通过phpinfo()找到的与SSL相关的所有当前设置:
Registered Stream Socket Transports: tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
已注册的流套接字传输:
tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
SSL Yes
SSL
Yes
SSL Version OpenSSL/0.9.8b
SSL版本
OpenSSL/0.9.8b
OpenSSL support enabled
enabled
OpenSSL支持
OpenSSL Library Version OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
OpenSSL库版本
OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
OpenSSL Header Version OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
OpenSSL的头版本
OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
Native OpenSSL support enabled
enabled
机OpenSSL支持
So what do I need to do in order for the API to connect to my server via SSL? 那么,为了使API通过SSL连接到服务器,我需要做什么?
Also, will I have to use https
in the URL of my callback script? 另外,我是否必须在回调脚本的URL中使用
https
?
For your server to be accessed via SSL, you do need a certificate for it on your server. 为了通过SSL访问服务器,您确实需要在服务器上为其提供证书。 While calling the other server, you would use the
https
to access it. 在调用另一台服务器时,您将使用
https
来访问它。 So if the API that you are calling requires a secure callback via SSL, then you do need the certificate. 因此,如果要调用的API需要通过SSL进行安全回调,那么您确实需要证书。 Otherwise, you do not.
否则,您不会。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.