The certificate chain did not validate, common name did not match URL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Im using some simple asp code but with this upgrade i'm getting the error The certificate chain did not validate, common name did not match URL.
can anyone help? code attached
ParmList = "USER=xxxx" & _
"&VENDOR=xxxx" & _
"&PARTNER=xxxx" & _
"&PWD=xxxx" & _
"&TRXTYPE=A" & _
"&TENDER=C" & _
"&EMAIL=xxxx"& _
"&ACCT=xxxx"& _
"&EXPDATE=0522"& _
"&AMT=1"& _
"&STREET=1 home st"& _
"&ZIP=06443" & _
"&shiptoZIP=06443"& _
"&shipfromZIP=06443"& _
"&ponum=423423"&_
"&desc=this merch"&_
"&taxamt=1"&_
"&cvv2=111"
Set client = Server.CreateObject("PayPal.Payments.Communication.PayflowNETAPI")
host = "pilot-payflowpro.paypal.com/transaction"
port = 443
timeOut = 45
set proxyAddress = nothing
proxyPort = 0
set proxyLogon = nothing
set proxyPassword = nothing
traceEnabled = "OFF"
set doNotChangeParam1 = nothing
set doNotChangeParam2 = nothing
set doNotChangeParam3 = nothing
doNotChangeParam4 = true
client.SetParameters host, port, timeOut, proxyAddress, proxyPort, proxyLogon, proxyPassword, traceEnabled, doNotChangeParam1, doNotChangeParam2, doNotChangeParam3, doNotChangeParam4
reqId = client.GenerateRequestId()
ResponseList = client.SubmitTransaction(parmList,reqId)
response.write("<Br>"&ResponseList)
- Labels:
-
Button APIs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found, at least with my .NET app, that I needed to enabled TLS 1.2 support to avoid this error.
Exactly how you do that will depend on your OS setup and programming language of choice.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- IPN works in sandbox but not live in Sandbox Environment
- Ipn PayPal server giving 301 or 302 errors in PayPal Payments Standard
- Url () is not a fully qualified URL in REST APIs
- Host name does not match server certificate for https://ipnpb.sandbox.paypal.com/cgi-bin/webscr in Sandbox Environment
- PHP IPN code no longer works in REST APIs