herald-si / verificac19-sdk-php

PHP Digital Green Certificate SDK
Apache License 2.0
13 stars 6 forks source link

Scan mode booster with recovery green pass #102

Closed darpins closed 2 years ago

darpins commented 2 years ago

hello, i test my recovery green pass with the scan mode booster(RSA or 3 doses) and the output is valid. But the real output not is need test?

DevPGS commented 2 years ago

Hi, some greenpass have a special tag in the signing certificate ['extensions']['extendedKeyUsage'] with values:

    public const OID_RECOVERY = "1.3.6.1.4.1.1847.2021.1.3";
    public const OID_ALT_RECOVERY = "1.3.6.1.4.1.0.1847.2021.1.3";

Those certificates (issued after a recovery post vaccine) are valid like the 3rd dose. You can see the validation in android-sdk source code here

darpins commented 2 years ago

perfect, thanks