pinning

How to Export Certificate from Chrome on a Mac?

前提是你 提交于 2020-02-26 05:49:48
问题 How do I export a security certificate from Chrome v37 on a Mac? Previously I could click on the little lock icon next to the URL, select "Connection," select the certificate, and an "Export" button would appear. Not so anymore! 回答1: Edit 4/3/19: I have found a workaround. This is tested on Chrome for Mac 73.0.3686.86 64-bit, platform: macOS 10.14.4: Open a new TextEdit document. In TextEdit, click Format | Make Plain Text. Arrange windows so that the TextEdit window and the Chrome window are

SSL certificate pinning with libcurl

风流意气都作罢 提交于 2020-01-31 17:59:07
问题 I'd like to know if this example is enough to provide certificate pinning with libcurl: http://curl.haxx.se/libcurl/c/cacertinmem.html because I have found that curl also allows http://curl.haxx.se/libcurl/c/CURLOPT_PINNEDPUBLICKEY.html Since I'll be using a self-signed certificate and only trust on it I don't know if it's truly necessary to pinn it too. resume: Can the connection be compromised if I only add my certificate (self-signed) to the x509 certificate store like the example? do I

ParseQuery gives 0 objects when querying from local datastore even after successfully pinning

烂漫一生 提交于 2020-01-04 06:50:42
问题 I am using the Android SDK of parse.com and have arrived at a peculiar problem. From a fragment's onCreate: Fetch an object from the server. Pin it. Fetch an object from the local datastore. Here is a snippet of the code from the onCreate: ParseObject myChatGroup = ParseObject.createWithoutData("ChatGroup", "mOJGWRiLPC"); myChatGroup.fetchInBackground(new GetCallback<ParseObject>() { @Override public void done(ParseObject chatGroup1, ParseException e) { if (e == null) { l.d("Fetched chat

SSL Pinning with fingerprint in Alamofire

痞子三分冷 提交于 2019-12-23 13:32:55
问题 Has anyone seen a way to do pinning with Alamofire with the fingerprint instead of the public key? Sorry if this has been answered, I haven't seen it anywhere. Thanks 回答1: This ended up being pretty straight forward. The code below might not be perfect, my real code is doing some addtional checks, but this is most of it. The .SHA1Fingerprint is an extension method on SecCertificate that copies it into NSData and then converts it to a SHA1. I use RNCryptor to do that, but you can do it however

Indexing into arrays of arbitrary rank in C#

a 夏天 提交于 2019-12-22 07:37:07
问题 I need to iterate over an array of arbitrary rank. This is for both reading and writing, so GetEnumerator will not work. Array.SetValue(object, int) doesn't work on multidimensional arrays. Array.SetValue(object, params int[]) would require excessive arithmetic for iterating through the multidimensional space. It would also require dynamic invocation to get around the params part of the signature. I'm tempted to pin the array and iterate over it with a pointer, but I can't find any

IBM MobileFirst certificate pinning best practices

落爺英雄遲暮 提交于 2019-12-22 05:40:08
问题 We are developing an IBM MobileFirst 7.1 Hybrid mobile application, and planning to use the certificate pinning feature. We can find information on IBM website about the SSL certificate pinning on IBM MobileFirst website : Here is a post in the IBM Knowledge Center and Here is a tutorial and its sample project/code All these resources are great, but I have some questions : Are there any advantages to use native certificate pinning implementation for Android and iOS when my application is a

IBM MobileFirst certificate pinning best practices

喜你入骨 提交于 2019-12-22 05:40:07
问题 We are developing an IBM MobileFirst 7.1 Hybrid mobile application, and planning to use the certificate pinning feature. We can find information on IBM website about the SSL certificate pinning on IBM MobileFirst website : Here is a post in the IBM Knowledge Center and Here is a tutorial and its sample project/code All these resources are great, but I have some questions : Are there any advantages to use native certificate pinning implementation for Android and iOS when my application is a

Manually unpinning a byte[] in C#?

倾然丶 夕夏残阳落幕 提交于 2019-12-20 02:44:21
问题 In the following code, it seems that the client.Connect.Receive is pinning the "byte[] result" permanently, causing the memory to never be freed (as it's always pinned). I'm looking for a way to tell C# that result no-longer needs to be pinned after it's usage in this.OnReceive, but I can't find the built-in function or keyword to do this. Does anyone know how I can get C# to unpin the byte[] array? (this is one of the sources of memory leaks in my C# application) this.m_TcpListener = new

SSL Pinning and certificate expiry

我是研究僧i 提交于 2019-12-18 11:53:05
问题 This question relates to the use of SSL Pinning in a client app against a web api and certificate expiry. Scenario : I own example.com and have a subdomain where an api is hosted, as such: api.example.com I wish to use the api over SSL , so an SSL Certificate is created for the subdomain. After the certificate has been acquired, I have: A Public Certificate A Intermediate Certificate A Private Key It's my understanding that I install these certificates on my webserver. I then wish for my

Do I need to pin an anonymous delegate?

泪湿孤枕 提交于 2019-12-18 07:48:11
问题 I am calling CopyFileEx from a C# application with an anonymous delegate being passed into the LPPROGRESS_ROUTINE parameter in order to get notifications on the file copy progress. My question is, does the anonymous delegate need to be pinned and why (or why not). In addition, does the answer change if: CopyFileEx was not blocking. If I passed in a delegate that was not anonymous. Thanks! 回答1: The delegate does not need to be pinned . A managed object is pinned if it cannot be moved by the