Importing Self-Signed certificates into ColdFusion

Blogged by webmilhouse as ColdFusion, Java — webmilhouse Mon 4 Apr 2005 10:05 am

If you ever needed to connect to a site that was using a self-signed certificate using cfhttp, here is how you import their certificate as a trusted certificate. This of course is dangerous, but can be OK if you know that the server is one you are trying to integrate with.

  1. Export the certificate by browsing to the site https://mydomain.com and save it DER encoded
  2. cd to /runtime/jre/lib/security/
  3. bin/keytool -keystore cacerts -import -alias mydomain -file mydomain.com.cer
  4. Password is “changeit”, unless you did, of course, change it :)
  5. Restart ColdFusion

Here is the documentation on the Java keytool.

Proudly powered by wordpress 2.7 - Theme based on Back in Black 2 by neuro, modded by me.