client-certificates

Debugging SSL Handshake

南笙酒味 提交于 2019-11-28 16:57:52
How to debug ssl handshake, preferably with curl? I would like to troubleshoot per directory authentication with client certificate. I would specially like to find out which acceptable client certificates does server send. Thanks in advance Christian Davén I have used this command to troubleshoot client certificate negotiation: openssl s_client -connect www.test.com:443 -prexit The output will probably contain "Acceptable client certificate CA names" and a list of CA certificates from the server, or possibly "No client certificate CA names sent", if the server doesn't always require client

How safe are client SSL certificates in a mobile app?

无人久伴 提交于 2019-11-28 15:55:09
I'd like to have secure communication between my Android/iOS app and my Internet-accessible backend service, so I'm investigating HTTPS/SSL. If I create self-signed certificates, then put a client certificate in the app and cause the backend service to require that client certificate, is this truly secure ? Here's why I'm asking. It seems that the client certificate could be "hacked" by interrogating the .apk. The client certificate is just a string constant, right? That means anyone could use the client certificate to access my backend. Is the .apk (and iOS equivalent) sufficiently opaque to

RESTful web service - how to authenticate requests from other services?

大兔子大兔子 提交于 2019-11-28 13:10:11
问题 I am designing a RESTful web service that needs to be accessed by users, but also other web services and applications. All of the incoming requests need to be authenticated. All communication takes place over HTTPS. User authentication is going to work based on an authentication token, acquired by POSTing the username and password (over an SSL connection) to a /session resource provided by the service. In the case of web service clients, there is no end user behind the client service. The

What is the right way to send a client certificate with every request made by the resttemplate in spring?

梦想的初衷 提交于 2019-11-28 09:21:57
i want to consume a REST service with my spring application. To access that service i have a client certificate (self signed and in .jks format) for authorization. What is the proper way to authenticate against the rest service? This is my request: public List<Info> getInfo() throws RestClientException, URISyntaxException { HttpEntity<?> httpEntity = new HttpEntity<>(null, new HttpHeaders()); ResponseEntity<Info[]> resp = restOperations.exchange( new URI(BASE_URL + "/Info"), HttpMethod.GET, httpEntity, Info[].class); return Arrays.asList(resp.getBody()); } Here is example how to do this using

IISExpress ClientCertificate Setup Steps

蓝咒 提交于 2019-11-28 03:51:11
问题 I am trying to configure a simple web site to require client certificates on IISExpress. My configuration is according to http://www.jasonrshaver.com/?tag=/IIS+Express <site name="XXXX" id="3"> <application path="/" applicationPool="Clr4IntegratedAppPool"> <virtualDirectory path="/" physicalPath="XXXX" /> </application> <bindings> <binding protocol="http" bindingInformation="*:65360:localhost" /> <binding protocol="https" bindingInformation="*:44300:localhost" /> </bindings> </site> ...

iOS Client Certificates and Mobile Device Management

断了今生、忘了曾经 提交于 2019-11-27 21:24:33
Our customers want to use an MDM (mobile device management) solution (MobileIron) to install client certificates onto corporate iOS devices, in order to limit access to certain corporate web services to corporate devices only. MobileIron installs the client certificate into Settings > General > Profiles , which is the default location for certificates in iOS, and Safari can respond with this certificate when a corporate web service challenges it for one. But I need the same thing to happen from within a custom app. When our app gets challenged for a certificate, I need to be able to respond

Mutual certificates authentication fails with error 403.16

大兔子大兔子 提交于 2019-11-27 19:09:35
I'm using Windows Server 2012 and IIS 8.5. I've set SSL for the website and the SSL Settings are: Require Required and Require Client Certificates. The client certificate that I'm sending to the server has been issued by a self-signed authority (let's called it MyCompany CA). MyCompany CA certificate has been successfully installed in the Local Computer Account - Trusted Root Certification Authorities. It's expiration date is 2039, so is the client certificate expiration date. However, with all this setup, I'm getting an error 403.16 as result. I've enabled Failed Request Tracing Rules and

Browser is not prompting for a client certificate

﹥>﹥吖頭↗ 提交于 2019-11-27 17:32:15
问题 Background: I am updating an internal application to a two-step authentication process. I want to add a client certificate authentication process (via a smart card) on top of a traditional username/password form. The application is written in C#, hosted on IIS7, and targeting Chrome and IE8. Problem: I am having issues with getting the application to prompt the user for a client certificate. I have been debugging the application with the help of Fiddler. When I have a test client certificate

What is the right way to send a client certificate with every request made by the resttemplate in spring?

佐手、 提交于 2019-11-27 16:40:09
问题 i want to consume a REST service with my spring application. To access that service i have a client certificate (self signed and in .jks format) for authorization. What is the proper way to authenticate against the rest service? This is my request: public List<Info> getInfo() throws RestClientException, URISyntaxException { HttpEntity<?> httpEntity = new HttpEntity<>(null, new HttpHeaders()); ResponseEntity<Info[]> resp = restOperations.exchange( new URI(BASE_URL + "/Info"), HttpMethod.GET,

Make IIS require SSL client certificate during initial handshake

99封情书 提交于 2019-11-27 13:36:23
I am trying to configure an IIS website to require SSL client certificates. The website is set up in both IIS 6 and 7, though I am more interested in making it work for 7. I set the require client certificates property in IIS and it works fine when accessing the site through a web browser, but a Java-based client is having trouble accessing it. I believe the problem is that IIS does not request a client certificate during the initial SSL handshake. Instead it negotiates a normal SSL connection, checks to see if the resource requires client certificates, and if it does it then initiates a new