Introduction
This document describes implementation of sunbird rc qr code generation based on the wiki.
- SB-29126Getting issue details... STATUS
Problem Statement
To support the backward compatibility for qr code generation.
Solution
To make the Sunbird RC QR codes compatible with the existing version of Sunbird consumption app, the QR code generated by Sunbird RC should also be a URL. The proposed solution is to enable a provision in Sunbird RC to generate the QR code in URL format along with the W3C-VC data.
Prerequisite
Add the below data in /sunbird-rc-core/services/certificate-api/configs/keys.js
const qrType = process.env.QR_TYPE || 'W3C-VC'; const certDomainUrl = process.env.CERTIFICATE_DOMAIN_URL || "https://dev.sunbirded.org";
change the signingKeyType
to KeyType.RSA
in /sunbird-rc-core/services/certificate-signer/configs/keys.js
const signingKeyType = process.env.SIGNING_KEY_TYPE || KeyType.RSA;