Merge pull request #1 from lotze/master

use params given for header, if any
set the default cert file (fails to validate certificate otherwise in some installations)