Invalid-CSR , The provided Certificate Signing Request (CSR) is invalid. in simulation

I am using simulation endpoint and official sdk,
step:

  • i have created csr and private key with sdk

  • submitted csr and got binarySecurity token and secret

  • i have modified sdk cert with decoded binarySecurityToken and private key with the 1st step private key

  • then i have signed and submitted simplified invoice, simplified credit-note, simplified debit-note

  • till here everything was successful

  • as i have submitted all the compliance invoice and all was reported I move to production/csids

  • Now its giving the below error of 400

    {

    “errorCode”: “400”,

    “errorCategory”: “Invalid-CSR”,

    “errorMessage”: “The provided Certificate Signing Request (CSR) is invalid.”

}

as all the invoice was reported successfully then why its giving the error,
i have checked the csr and the decoded binarySecurityToken in CSR Decoder and Certificate Decoder
both was passed