client-certificates

How to make a request with client certificate in Rust

心不动则不痛 提交于 2019-12-02 07:11:36
I have a project with microservices deployed in Bluemix with Docker containers. All microservices are written in Java and the communication is using JKS files. I also developed a microservice in Node.js with Express.js. To consume the other microservices, I used the Request module with option.agentOptions feature and a pfx file , like this: var options = { uri: config.get("https://www.example.com/ms/service"), method: 'POST', body: data, json: true, headers: { 'Content-Type': 'application/json; charset=UTF-8' }, agentOptions: { pfx: fs.readFileSync(config.get("/path/to/file.pfx")), passphrase:

Azure SQL Database error TLS Handshake failed since v12 upgrade

这一生的挚爱 提交于 2019-12-01 20:10:38
问题 I receive this error since this morning, new v12 updated server / Azure SQL Database: TLS Handshake failed: x509: certificate is valid for tr12.northcentralus1-a.worker.database.windows.net, *.tr12.northcentralus1-a.worker.database.windows.net, not [server-name].database.windows.net Locally I have no problem connecting to the Azure SQL database. On Azure Web App the connection cannot be established. Same connection string as local - was working fine before v12 update. I'm using this SQL

how to validate a client Certificate using the trusted internediate CA certificate?

一个人想着一个人 提交于 2019-12-01 19:17:31
I am having client Certificate "A" which is signed by the CA1 certificate. CA1 certificate is signed by the Root certificate. Now I have the CA1 certificate (trusted ) and received Client certificate (non trusted ) . during validation I need to verify the trust path of the client certificate using CA1 (trusted) only .. I dont have /receive the Root certificate. Is it possible to do this validation ? I am using Openssl 1.0.0g version library. If any one know how to do that please share with me . Since, you have given the Tag, ssl-certificate , I assume that you need such a validation during an

ASP.NET Request.ClientCertificate returning empty on IIS 7

孤街浪徒 提交于 2019-12-01 18:06:47
I'm migrating a web app from an IIS 6 server to an IIS 7 server and I'm having some troubles with getting the client's certificate. The piece of code that I'm using looks like this: HttpClientCertificate cert = Request.ClientCertificate; if (cert.IsPresent) { ... } On the IIS 6 server, the cert.IsPresent is always true. However, on the IIS 7 box, it is always false. Both tests were done with IE 8 from the same computer. The only change was the Server URL, so the client should be setup correctly. I'm not getting any SSL connection errors (I'm accessing the page via https ) and I've set the SSL

stream_socket_client failing on my server with no way to know more about the error

二次信任 提交于 2019-12-01 18:03:32
This code: ( https://github.com/stuffmc/Safari-Push-Notifications/blob/master/index.php#L195 ) stream_socket_client('ssl://gateway.push.apple.com:2195', $error, $errorString, 60, STREAM_CLIENT_CONNECT, $streamContext); returns false , but with no errors. It means that when I'm sending to /v1/push it fails for every device/token :( The PHP documentation says: If the value returned in errno is 0 and the function returned FALSE, it is an indication that the error occurred before the connect() call. This is most likely due to a problem initializing the socket. I have this code running perfectly

stream_socket_client failing on my server with no way to know more about the error

◇◆丶佛笑我妖孽 提交于 2019-12-01 18:01:00
问题 This code: (https://github.com/stuffmc/Safari-Push-Notifications/blob/master/index.php#L195) stream_socket_client('ssl://gateway.push.apple.com:2195', $error, $errorString, 60, STREAM_CLIENT_CONNECT, $streamContext); returns false , but with no errors. It means that when I'm sending to /v1/push it fails for every device/token :( The PHP documentation says: If the value returned in errno is 0 and the function returned FALSE, it is an indication that the error occurred before the connect() call

how to validate a client Certificate using the trusted internediate CA certificate?

天大地大妈咪最大 提交于 2019-12-01 17:14:20
问题 I am having client Certificate "A" which is signed by the CA1 certificate. CA1 certificate is signed by the Root certificate. Now I have the CA1 certificate (trusted ) and received Client certificate (non trusted ) . during validation I need to verify the trust path of the client certificate using CA1 (trusted) only .. I dont have /receive the Root certificate. Is it possible to do this validation ? I am using Openssl 1.0.0g version library. If any one know how to do that please share with me

ASP.NET Request.ClientCertificate returning empty on IIS 7

最后都变了- 提交于 2019-12-01 16:49:25
问题 I'm migrating a web app from an IIS 6 server to an IIS 7 server and I'm having some troubles with getting the client's certificate. The piece of code that I'm using looks like this: HttpClientCertificate cert = Request.ClientCertificate; if (cert.IsPresent) { ... } On the IIS 6 server, the cert.IsPresent is always true. However, on the IIS 7 box, it is always false. Both tests were done with IE 8 from the same computer. The only change was the Server URL, so the client should be setup

Sending client certificate via JavaScript.

删除回忆录丶 提交于 2019-12-01 14:19:07
How to pass a client certificate automatically in JavaScript (I am using XmlHttpRequest to make the call)? If this is not possible (and from what I have read it isn't because it is the browser which determines this security aspect and not the javascript running within it) then can I atleast prompt the user to select a client certificate on an event click? Any other way to accomplish this? The code will run in IE. I am currently getting an HTTP Forbidden (requesting a client certificate) when I connect to the URL. There is no prompt for any client cert selection similar to what I get when I

How to enable SSL with client certificate for Websphere MQ client?

社会主义新天地 提交于 2019-12-01 12:12:37
We are one application in a larger environment and a client for some data interface, using Websphere MQ 8.x. Our application is a Java EE application running on a WildFly 9 which uses a resource adaptor ( wmq.jmsra.rar ) which is deployed together with the EAR file in the same AS. We interact with the MQ Server in both directions. So we have on the one hand some MDBs (which are due to historical origins still in EJB 2.x format without annotations) listining to some queues and which are configured by the ejb-jar.xml deployment descriptor, containing the activation config properties