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:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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:
1 2 3 |
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.
1 2 |
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.