If a certificate chain contains no certificate which can be validated as a standalone certificate (i.e. contains no trusted root certificates or previously-validated certificates) then iPXE will currently return a fixed error EACCES_UNTRUSTED. This masks the actual errors obtained when attempting to validate each certificate as a standalone certificate, and so makes troubleshooting difficult for the end user. Fix by instead returning the error obtained when attempting to validate the final certificate in the chain as a standalone certificate. This error is most likely (though not guaranteed) to represent the "real" problem. Reported-by: Sven Dreyer <sven@dreyer-net.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
1552 |
|
1552 |
|
1553 |
|
1553 |
|
1554 |
|
1554 |
|
1555 |
|
|
|
1556 |
|
|
|
1557 |
|
|
|
1558 |
|
|
|
1559 |
|
|
|
|
1555 |
|
|
|
1556 |
|
|
1560 |
|
1557 |
|
1561 |
|
1558 |
|
1562 |
|
1559 |
|
|
|
||
1586 |
|
1583 |
|
1587 |
|
1584 |
|
1588 |
|
1585 |
|
1589 |
|
|
|
1590 |
|
|
|
|
1586 |
|
|
|
1587 |
|
|
|
1588 |
|
|
1591 |
|
1589 |
|