when i generate e invoice QR code using below string and after scan using Gov. code scanner app it will return "unable to e verify qr code as digital signature is invalid"
eyJhbGciOiJSUzI1NiIsImtpZCI6IjE1MTNCODIxRUU0NkM3NDlBNjNCODZFMzE4QkY3MTEwOTkyODdEMUYiLCJ4NXQiOiJGUk80SWU1R3gwbW1PNGJqR0w5eEVKa29mUjgiLCJ0eXAiOiJKV1QifQ.eyJkYXRhIjoie1wiU2VsbGVyR3N0aW5cIjpcIjI0QUFDQ1QzMzUyTTFaOVwiLFwiQnV5ZXJHc3RpblwiOlwiMjlBV0dQVjcxMDdCMVoxXCIsXCJEb2NOb1wiOlwiRE9DLzM2NTBcIixcIkRvY1R5cFwiOlwiSU5WXCIsXCJEb2NEdFwiOlwiMjUvMDcvMjAyM1wiLFwiVG90SW52VmFsXCI6MTI5MDgsXCJJdGVtQ250XCI6MSxcIk1haW5Ic25Db2RlXCI6XCIxMDAxXCIsXCJJcm5cIjpcIjM4ZDNjOWNiMmNhZDcxYWZmMjMyZGI4MWFjMzdhNWIwMzE5OGIwODdiMjBiZWI1ZjkxOGY1NjBlMjMzOTgzOTVcIixcIklybkR0XCI6XCIyMDIzLTA3LTI1IDE2OjM0OjIwXCJ9IiwiaXNzIjoiTklDIFNhbmRib3gifQ.2fxrE-VaLYITI0bdAgX9q76BK7Crh05R2vrRHJlLDzpgbBNzvnCo53XMRCMgPWJNr91-jO0rHia-9iMWRI43kh4A4ZYkUoAdFgB-4ePBiPUEZzgLxuSqSsuLMsPTv9KmjhPDyHBv0SaTARu2y3Co9dk-L-AgCtWMvcPyXXz-q-ZNivhuvU9iuu_Oe1UcxaxcEEkAX11r99w4wnpIg8h-A0La8DLaA7iStLy7cOjCGQKgh5cIsSKJzUY2k_iFG85UXReygBVvt-_yTyQWxOM2H7SnXGtz4U3dU7f-Fd02CCspp7Mj1T5gHa7pBdZYKqsREav-mb8UUfNlHJqaPU8mTQ
Tahir AnsariPosted Jul 25, 2023, 11:15 AM
Trouble shooting steps
1. Verify Digital Signature Generation:
- Ensure that you are correctly generating the digital signature for the QR code payload using the appropriate cryptographic algorithm and key. Verify that the private key used for signing matches the public key used for verification.
- Check if there are any specific requirements for the digital signature format or algorithm specified by the government or the scanning app.
2. Validate QR Code Data and Signature:
- Before generating the QR code, try validating the data and the signature locally within your .NET application to check if they are valid. This can help you identify any potential issues with the data or signature before creating the QR code.
3. Verify QR Code Encoding:
- Ensure that you are correctly encoding the data and the signature into the QR code. Use a QR code library in .NET that supports the necessary encoding format.
4. Test with Other Scanners:
- Try scanning the generated QR code with other QR code scanner apps to see if the issue is specific to the "Gov. code scanner app" or if it's a broader problem with the generated QR code.