diff --git a/src/app/document/controllers/CertificateSignatureController.php b/src/app/document/controllers/CertificateSignatureController.php
index c99b9d10db6603bca4156d38c2770bba9a445671..f5b7e6c9631feae67dab9bb37af40466f93a49b3 100755
--- a/src/app/document/controllers/CertificateSignatureController.php
+++ b/src/app/document/controllers/CertificateSignatureController.php
@@ -262,6 +262,9 @@ class CertificateSignatureController
                 'fieldName'          => $args['signatureFieldName'],
                 'extraCertificate'   => $args['certificate']
             ]);
+            if (!empty($signedDocumentPath['errors'])) {
+                return ['errors' => $signedDocumentPath['errors']];
+            }
         }
 
         if ($args['lastUserStep'] && $args['lastWorkflowStep'] && $args['signatureMode'] == 'rgs_2stars_timestamped') {