aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz/pdfas/commandline/CommandlineConnectorChooser.java
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-12-01 15:55:48 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-12-01 15:55:48 +0000
commit11f710e10173eed45c7c4aa3b929aa890ee8a850 (patch)
treee6896c0946d5fa243f1c9cb0df5c44998efd9ed0 /src/main/java/at/gv/egiz/pdfas/commandline/CommandlineConnectorChooser.java
parenta214f9a279fc764da26f2c79505ef2835b375d57 (diff)
downloadpdf-as-3-11f710e10173eed45c7c4aa3b929aa890ee8a850.tar.gz
pdf-as-3-11f710e10173eed45c7c4aa3b929aa890ee8a850.tar.bz2
pdf-as-3-11f710e10173eed45c7c4aa3b929aa890ee8a850.zip
Workaround implemented regarding a bug with RFC2253 names where RDNs were not resolved at signing time (resulting from a BKU that could not resolve the respective OIDs):
e.g. 2.5.4.5=#1306323030383034,CN=Foreigner CA,C=BE The example shows a RDN "2.5.4.5" which should have been resolved to "serialNumber" at signing time. Imagine a line break between "Foreigner" and "CA" within the signature block. After text extraction the Name looks like as follows: 2.5.4.5=#1306323030383034, CN=ForeignerCA,C=BE We recognize that the name shows spaces prior to RDNs and that the space between "Foreigner" and "CA" is missing due to text extraction/reconstruction. The naive approach would be to take the complete RFC2253 name from the certificate, since that name has also been used for signature. But this does not work in some cases because while the BKU was not able to resolve 2.5.4.5 on signing time, the entity invoking pdfas for verification might be at verification time, so that taking the name from certificate on verification time, may not result in the name we had at signing time. This workaround merges information from text extraction with information from the certificate. The method takes all RDNs from the extracted text and merges them with the values from the certificate (considering the case where the textual version shows BER encoded values (e.g. <code>#1306323030383034</code>). git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@665 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/gv/egiz/pdfas/commandline/CommandlineConnectorChooser.java')
0 files changed, 0 insertions, 0 deletions