The certificate chain did not validate, common name did not match URL.

jerlanger
New Community Member

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)

Login to Me Too
2 REPLIES 2

jasonred
New Community Member

I'm having the same issue. Were you able to resolve this?

Login to Me Too

FishOfPrey
New Community Member

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.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.