-From 8e05841e7c344b74cc27d065f7248f61713b2689 Mon Sep 17 00:00:00 2001
+From 98fd97babea6a2e7961b5357206397f17fd14719 Mon Sep 17 00:00:00 2001
 From: Dmitrii Pichulin <deem@deem.ru>
 Date: Wed, 6 Sep 2017 00:50:26 +0300
 Subject: [PATCH] added GOSTSSL

   if (ssl_config_.client_cert.get()) {
     if (!ssl_config_.client_private_key) {
diff --git a/net/ssl/client_cert_store_nss.cc b/net/ssl/client_cert_store_nss.cc
index b3c2766..ef16d34 100644
--- a/net/ssl/client_cert_store_nss.cc
+++ b/net/ssl/client_cert_store_nss.cc
@@ -154,6 +154,45 @@ ClientCertIdentityList ClientCertStoreNSS::GetAndFilterCertsOnWorkerThread(
   GetPlatformCertsOnWorkerThread(std::move(password_delegate),
                                  &selected_identities);
   FilterCertsOnWorkerThread(&selected_identities, *request);

+                for( int i = 0; i < count; i++ )
+                {
+                    scoped_refptr<X509Certificate> cert( X509Certificate::CreateFromBytes( certs[i], lens[i] ) );
+                    selected_identities.push_back( base::MakeUnique<ClientCertIdentityNSS>( cert, password_delegate ) );
+                    std::sort(selected_identities.begin(), selected_identities.end(), ClientCertIdentitySorter());
+                }
+            }
+        }
