Quantcast
Channel: ColdFusion – ColdFusion
Viewing all articles
Browse latest Browse all 100

Java Keystore – CFHTTP / JSON

$
0
0

Hello All-

I have a routine that uses cfhttp to send JSON to a credit card processor.  This only generates invoices, not moving CC info.

The system will build the JSON, then send it using CFHTTP.

*Most times* I get a connection failure.  I am sure this has to do with the Java security certificates.  All of my code worked well on a previous server, with different certificate types installed in IIS.  But I am sure that I never imported a Java certificate in the past, so I am not sure why it is an issue now. (Also upgraded to CF2018 when I moved servers)

I have figured out how to install certs using the Keytool, make them active using the MMC, (and restart CF).  But this process doesn’t work, and I am sure I am making rookie mistakes.

A couple of questions:

  • what certificate should I be adding to the keystore?  Mine, or theirs?
  • Does the alias I use in the keystore matter at all?  Do I need to name it after either domain?  (if so- which?)

My environment:  Windows Server 2019.  ColdFusion 2018 Standard.

Also, very oddly…it seems as though this will *occasionally* work on the first step (sending the original request) but then will fail later when I receive information and send something back.

My website certificate is from R3.  The target server is hosted on Azure.

Any help would be appreciated.  I’ve never really dug into the Java certificates, and I am completely lost and just blindly adding more certs, not knowing if I am helping or making things worse!

Thanks-

The post Java Keystore – CFHTTP / JSON appeared first on ColdFusion.


Viewing all articles
Browse latest Browse all 100

Latest Images

Trending Articles



Latest Images