VirtualBox

Changeset 50887 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Mar 26, 2014 12:55:14 PM (11 years ago)
Author:
vboxsync
Message:

Put a warning instead an error if X509 certificate is not self-signed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp

    r50832 r50887  
    21032103        if (RT_SUCCESS(vrc))
    21042104        {
     2105            /*
     2106             * possible step in the future. Not obligatory due to OVF2.0 standard
     2107             * OVF2.0:"A consumer of the OVF package shall verify the signature and should validate the certificate"
     2108             */
    21052109            vrc = RTX509CertificateVerify(pvCertBuf, (unsigned int)cbCertSize);
    21062110        }
     
    21572161                        errStrDesc = "X509 certificate verification failure ";
    21582162                        break;
    2159                     case VERR_NOT_SELFSIGNED_X509_CERTIFICATE:
    2160                         errStrDesc = "Only self signed X509 certificates are supported at moment";
    2161                         break;
    21622163                    default:
    21632164                        errStrDesc = "Unknown error during X509 certificate verification";
    21642165                }
    21652166                rc = setError(VBOX_E_FILE_ERROR, tr(errStrDesc.c_str()));
     2167            }
     2168        }
     2169        else
     2170        {
     2171            if(vrc == VINF_NOT_SELFSIGNED_X509_CERTIFICATE)
     2172            {
     2173                setWarning(VBOX_E_FILE_ERROR,
     2174                           tr("Signature from the X509 certificate has been verified. "
     2175                              "But VirtualBox can't validate the given X509 certificate. "
     2176                              "Only self signed X509 certificates are supported at moment. \n"));
    21662177            }
    21672178        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette