Cloudflare Origin and ProScan HTTPS server

johndball

I have the "expensive hobby" autism
Premium Subscriber
Joined
Jan 13, 2018
Messages
14
Reaction score
5
Location
Virginia
Hi folks,

I'm trying to configure ProScan HTTPS using a Cloudflare Origin certificate and it is failing. I pinged Bob via email and he suggested that I open a thread here but followed up a bit later asking if there were any error messages. This is what I replied with and I'm hoping somebody has gotten this to work.

Hi Bob,

No rush on this. It has been on my back burner for a while. Yes, I am receiving an error on the HTTPS Web Server page of ProScan.

The goal here is to allow access to the ProScan server on my DMZ only from users that are forced through Cloudflare. This is achieved through various methods, but it boils down to restricted access to the ProScan server only though Cloudflare-supplied IPV4 subnets and secured through a Cloudflare Origin certificate/connection. I have this working on a few servers already but not with ProScan.

The requirement for this is running a Cloudflare Origin Certificate on the server using a Cloudflare-provided public and private key pair although I can supply my own CSR to Cloudflare if Proscan allowed for CSR generation. The Origin Certificate is a certificate that is supplied by Cloudflare that runs on the local web server and will only allow communication between Cloudflare and the server. Think if it as a client certificate. Cloudflare has a blog post on this feature from 2014: Introducing CloudFlare Origin CA

The challenge is that the ProScan server will accept the certificate but does not recognize the certificate as valid. Cloudflare will generate for me a public and private key pair which I’ve added to the server, but the result is that I receive a Valid “False” error message in ProScan. My gut tells me is has something to do with the domain checking that is done on the certificate, but without a deep knowledge of ProScan’s programing, I can only guess.

I’ve attached a few screenshots for reference.
 

Attachments

  • ProScan Origin not working.png
    ProScan Origin not working.png
    243.8 KB · Views: 14
  • ProScan self-signed working.png
    ProScan self-signed working.png
    317.3 KB · Views: 15
  • Cloudflare Origin public-private pair.png
    Cloudflare Origin public-private pair.png
    164.5 KB · Views: 15
  • Cloudflare Origin cert creation.png
    Cloudflare Origin cert creation.png
    191.5 KB · Views: 13
  • Cloudflare origin settings.png
    Cloudflare origin settings.png
    188.1 KB · Views: 14

johndball

I have the "expensive hobby" autism
Premium Subscriber
Joined
Jan 13, 2018
Messages
14
Reaction score
5
Location
Virginia
Thanks for that. I'm have to decide on my end what route to take. 1) Keep it as is (before the test files) or 2) If it is a ClouldFlare Origin cert then use the chain policy AllowUnknownCertificateAuthority. Probably 1.
For simplicity of development, I would say go with route 1 but maybe tweak the LetsEncrypt function/verbiage to state "Custom PFX". If somebody is building custom PFX chains they should know what they are doing. Or even keep that as-is and update the ProScan documentation to mention that custom PFX is allowed under the LetsEncrypt function.
 

ndebaggis

Member
Premium Subscriber
Joined
Jan 24, 2021
Messages
58
Reaction score
53
Did it manually. I too was once an ADCS admin back in the server 2008 IT admin days. :cool:
I probably used Portecle more than I'd want to ever again! Guessing there are easier ways now though, PSPKI has some great tooling available but I never go to the point of scripting up a PFX builder.

Screenshot 2025-07-02 140013.png
 

ndebaggis

Member
Premium Subscriber
Joined
Jan 24, 2021
Messages
58
Reaction score
53
For simplicity of development, I would say go with route 1 but maybe tweak the LetsEncrypt function/verbiage to state "Custom PFX". If somebody is building custom PFX chains they should know what they are doing. Or even keep that as-is and update the ProScan documentation to mention that custom PFX is allowed under the LetsEncrypt function.
Agreed. I'd also add some text for those brave souls with custom PFX to ensure they add any required root CA certs to their LocalMachine cert store. I still needed to do that to get a good verification. I think bouncy or .net might ignore the bundled PFX's root CA for security reasons (just guessing).
 
Top