Pular para o conteúdo principal

PKI Express Return Codes

The PKI Express operations have a set of return codes shown bellow with the meaning of each one.

Return CodeMeaning
00 - OkOperation completed successfully
01 - BadSyntaxParameters do not match the expected format
02 - UnknownErrorUnknown error
03 - FileNotFoundFile not found
04 - BadCertificateError decoding certificate file
05 - BadThumbprintInvalid thumbprint
06 - BadHashInvalid To Sign Hash or could not infer the digest algorithm from the given hash
07 - BadDataInvalid To Sign Data
08 - BadSignatureInvalid Signature
09 - BadAlgorithmInvalid Algorithm
10 - BadPolicyInvalid Policy
11 - BadVisualRepError parsing visual representation parameters file
12 - UndefinedFileReferenceUndefined file reference
13 - CertNotFoundCertificate not found
14 - ValidationFailedValidation failed
15 - IOErrorError reading file
16 - NoCertsWithKeyPFX file does not contain any certificates with private key
17 - NotActivatedNot Activated PKI Express
18 - ActivationErrorFail to activate PKI Express
19 - BadLicenseInvalid Base-64 of activation license
20 - LicenseNeededNo given license file
21 - InvalidLicenseInvalid license
22 - AccessDeniedMissing permission to modify PKI Express settings
23 - CertThumbNeededNo given thumbprint
24 - BadPdfChangesError occurred while processing changes to PDF
25 - UpdateNeededOperation requires a newer version of PKI Express
26 - DataFileNeededNo given Data File
27 - NoEncapsulatedContentMissing encapsulated content
28 - NonceNotFoundNonce not found
29 - DirectoryNotFoundDirectory not found
30 - TimestampAuthorityNotAvailableTimestamp requester failed
31 - PolicyRequiresNetworkChosen policy requires network (offline mode not supported)
32 - TimestampOptionsRequiredNo given timestamp authority's address
33 - CultureNotFoundCulture not found
34 - TimeZoneNotFoundTimeZone not found
35 - InvalidUtcOffsetInvalid UTC offset
36 - KeySizeNotSupportedUnsupported key size
37 - BadKeyFormatUnrecognized key format
38 - BadKeyInvalid key
39 - InvalidTimeoutValueInvalid timeout value
40 - CertificateMismatchProvided certificate file does not correspond to the stored key
41 - KeyNotFoundKey not found
42 - NoCertificateFileNo given certificate file
43 - BadCertificationLevelInvalid certification level

Validation Errors

Validation errors occur during signatures or authentications or inspections with validation.

Validation ErrorMeaning
SuccessValidation completed successfully
CertificateNotYetValidAt the date reference, the certificate is not valid yet
CertificateExpiredAt the date reference, the certificate has expired
CertificateRevokedAt the date reference, the certificate has been revoked
CertificateIssuerNotFoundThe issuer of the certificate could not be found
CertificateRevocationStatusUnknownThe revocation status of the certificate could not be verify. Mostly, PKI Express could not access the certificate's CRLs (see LAPP)
CertificateChainRootNotTrustedThe root of the certificate chain is not trusted
InvalidCertificateSignatureThe signature is not valid based on the provided certificate's public key
DecodeErrorCould not decode a part of the object being validated
RequiredSignedAttributeMissingThe signature does not have all required signed attributes
ForbiddenSignedAttributePresentThe signature have one or more forbidden signed attributes
RequiredUnsignedAttributeMissingThe signature does not have all required unsigned attributes
ForbiddenUnsignedAttributePresentThe signature have one or more forbidden unsigned attributes
ContentTypeMismatchThe content-type attribute specifies a different content-type than that of the CMS
MessageDigestMismatchThe message digest attribute specifies a digest that does not match the digest of the signed data
SigningCertificateDigestMismatchThe signing certificate attribute specifies a certificate digest that does not match the digest of the signer's certificate
SignatureAlgorithmValidationFailedThe signature algorithm validation failed
RevocationDataIssuedBeforeGracePeriodThe revocation data values were issued before the grace period
UncertifiedDateReferenceThe date reference used to validate the signature is not certified
SignaturePolicyMismatchDuring validation, the signature policy differes from the given policy
SigningTimeOutOfCertificateValidityThe signature happened out of the certificate validity period
UnknownSignedAttributesPresentThe signature contains one or more unknown signed attributes
UnknownUnsignedAttributesPresentThe signature contains one or more unknwon unsigned attributes
TimestampWithMoreThanOneSignerThe timestamp has more than one signer
TimestampMessageImprintMismatchThe timestamp message-imprint is not the same as the computed message-imprint
CompleteReferencesMismatchThe certificate's complete reference is not valid
InvalidSignatureTimestampThe signature timestamp is not valid
InvalidReferencesTimestampThe reference timestamp is not valid
InvalidSigAndRefsTimestampThe signature timestamp and the reference timestamp is not valid
InvalidArchiveTimestampThe archive timestamp is not valid
InvalidKeyUsageThe signing-certificate does not have permission for performing this type of operation
InvalidOcspResponseThe OCSP's response is not valid
UnauthorizedIssuerThe certificate issuer is not a CA
UnknownRootTrustStatusThe root trust status is unknown
InvalidTslThe TSL is not valid
InvalidCrlThe certificate CRLs are not valid
CertificateIssuerValidThe certificate issuer is valid and trusted
CertificateIssuerInvalidThe certificate issuer is not valid or not trusted
CertificateValidationFailedThe certificate validation failed
SignatureVulnerableToSignerSubstitutionThe signature is vulnerable to signer substitution
InvalidXmlSignatureSchemaThe signature schema (XSD) is not valid
XmlDSigCoreValidationFailedThe core validation of the signature failed (the digest or signature are incorrect)
SignatureTimestampIgnoredThe signature's timestamp was ignored
InvalidCertificationPathLenThe CAs certification path is not valid
SigningCertificateNotFoundThe certificate of the signer was not found
UnauthorizedACIssuerThe certificate issuer is a CA, therefore cannot be used to issue attribute certificates
AlgorithmNotAllowedThe algorithm is not allowed
UnacceptableSignaturePolicyThe signature policy is not acceptable
TslNotAvailableTSL is not available