Like the bash scripts the php module should go with dynamic OCSP verification
1) Extract the signers certificate
2) Add the CA certificate file (as the chain is not yet returned)
3) Split the certificates into separate files
4) Get the URL out of the signers certificate
5) Find the proper issuer certificate
6) Verify the OCSP status with the proper issuing certificate
This will remove the need to configuration and related .crt file of:
/* OCSP configuration */
public $ocsp_cert = "/opt/mobileid/swisscom-ocsp.crt"; // OCSP information of the signers certificate
public $ocsp_url = "http://ocsp.swissdigicert.ch/sdcs-rubin2";
Like the bash scripts the php module should go with dynamic OCSP verification 1) Extract the signers certificate 2) Add the CA certificate file (as the chain is not yet returned) 3) Split the certificates into separate files 4) Get the URL out of the signers certificate 5) Find the proper issuer certificate 6) Verify the OCSP status with the proper issuing certificate
See https://github.com/SCS-CBU-CED-IAM/mobileid-cmd/blob/master/bash/mobileid-sign.sh
This will remove the need to configuration and related .crt file of: