Enhance SSL building scripts.

Refs #4948
Merge branch 'feature/ssl-scripts-4948' into next

Fixes #4948