X509Certificate Java Class是否等效于Ruby?

| 在Java中,要收集用户的证书,可以通过以下方法实现:
X509Certificate[] certs = (X509Certificate[]) request.getAttribute(\"javax.servlet.request.X509Certificate\");
从那里,您可以使用checkValidity方法检查数组中每个特定证书的有效性。在Rails / Ruby中,是否有类似的方式来收集用户的证书? 同样,您可以通过以下方式建立信任和密钥存储
System.setProperty(\"javax.net.ssl.keyStore\", \"/path/to/keystore\");
System.setProperty(\"javax.net.ssl.trustStore\", \"/path/to/truststore\");
我可以在Rails的哪里建立密钥/信任存储区,或者完全依赖于服务器?     
已邀请:

要回复问题请先登录注册