eu-federation-gateway-service/efgs-federation-gateway

create_certificate_signature.bat cannot handle raw data of certificates

f11h opened this issue · 0 comments

f11h commented

Describe the bug

With 1.0.6 a improved version of create_certificate_signature.bat was released. The handling of certificate raw data was changed to base64.

the SET \p only reads up to 1024 characters. The base64-string of the certificate raw data has much more character. This results in corrupt base64 string handed over to sql-insert-statement.

Expected behaviour

Execute script for certificate signature creation and get a complete and working INSERT statement.

Steps to reproduce the issue

  1. execute create_certificate_signature.bat
  2. follow the instructions
  3. check insert.sql --> last parameter is incomplete base64 string

Technical details

  • Only Windows

Possible Fix

This change has to be rolled back or we should migrate the windows scripts to powershell.