简体   繁体   English

Openshift中具有自定义SSL证书的SSL客户端身份验证

[英]SSL Client Authentication in Openshift with Custom SSL Certificate

Is it possible to use SSL Client Authentication in a Node.js application in OpenShift? 是否可以在OpenShift的Node.js应用程序中使用SSL客户端身份验证?

Now that OpenShift supports Custom SSL Certificates (SNI based) from 0$ in its bronze plan, it could be attractive to switch to the bronze plan. 现在,OpenShift在其铜牌计划中从0 $支持自定义SSL证书(基于SNI),因此切换到该铜牌计划可能会很有吸引力。 However it seems like the client certificate could not be accessed from the application (ie node.js). 但是,似乎无法从应用程序(即node.js)访问客户端证书。 Or is there some hidden flag I'm missing? 还是我缺少一些隐藏的标志?

The SSL certificate is actually hosted on an apache reverse proxy on the node, and is not accessible from your gear. SSL证书实际上托管在节点上的apache反向代理上,无法通过您的设备进行访问。 You can look for the x-forwarded-proto header to see if the request is an https request or not. 您可以查找x-forward-proto标头,以查看该请求是否为https请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM