bkm express asp.net problemi – Vahap Öç – Exevolium https://exevolium.com #windows, #linux, #hosting, #cloud, #database, #vmware Wed, 01 Feb 2017 13:37:03 +0000 tr hourly 1 https://wordpress.org/?v=6.9.4 https://exevolium.com/wp-content/uploads/2017/03/favicon1.png bkm express asp.net problemi – Vahap Öç – Exevolium https://exevolium.com 32 32 BKM Express SSL/TLS Sertifika Problemi https://exevolium.com/bkm-express-ssltls-sertifika-problemi/ Thu, 29 Sep 2016 18:50:26 +0000 http://exevolium.com/?p=504 Merhaba,

ASP.NET veya OpenSource yapınızda BKM Express ödeme yapısını entegre edip kullanmak istediğinizde, BKM Express’in ödeme sayfasına siteniz yönlenmiyorsa ve aşağıdakine benzer hata sayfasıyla karşılaşıyorsanız bunun iki nedeni bulunuyor. Bu iki adımı da uygulamanız gerekmektedir.

Öncelikle aşağıdaki linke girin:
SSLLabs Site Test

Sitenizi sorgulatın ve bekleyin. Tüm sorgu tamamlandığında Cipher Suite listesine gelin. BKM Express sunucularının desteklediği Cipher Suite listesi aşağıdaki gibi:

TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (0xc030) ECDH secp256r1 (eq. 3072 bits RSA) FS 256
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (0xc02f) ECDH secp256r1 (eq. 3072 bits RSA) FS 128
TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 (0x9f) DH 2048 bits FS 256
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 (0x9e) DH 2048 bits FS 128
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (0xc028) ECDH secp256r1 (eq. 3072 bits RSA) FS 256
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (0xc014) ECDH secp256r1 (eq. 3072 bits RSA) FS 256
TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 (0x6b) DH 2048 bits FS 256
TLS_DHE_RSA_WITH_AES_256_CBC_SHA (0x39) DH 2048 bits FS 256
TLS_RSA_WITH_AES_128_CBC_SHA256 (0x3c) 128
TLS_RSA_WITH_AES_256_CBC_SHA256 (0x3d) 256
TLS_RSA_WITH_AES_128_GCM_SHA256 (0x9c) 128
TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 (0x67) DH 2048 bits FS 128
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (0xc027) ECDH secp256r1 (eq. 3072 bits RSA) FS 128

Sizin sunucunuzda da bu Cipher Suite listesinden en az birinin tanımlı olması gerekiyor. Eğer tanımlı değilse aşağıdaki hatayı alabilirsiniz:

UNKNOWN_ERROR: System.ServiceModel.Security.SecurityNegotiationException: Could not establish secure channel for SSL/TLS with authority preprod.bkmexpress.com.tr:9620. --->
System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel. at System.Net.HttpWebRequest.GetResponse() at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) ---
End of inner exception stack trace

SSL/TLS ile ilgili hatanın tek çözümü bu. Ayrıca çok önemli bir not: ASP.NET Framework versiyonunu kontrol edin. ASP.NET Full Trust yetkisine ihtiyacınız var. Yoksa sayfa aşağıdaki hatayı basar.

UNKNOWN_ERROR: System.Security.SecurityException: Request for the permission of type System.Security.Permissions.KeyContainerPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap

Umarım projenizde yol gösterici olur.

]]>