Finally fixed issues with resource plugin encoding certificates.