Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

special case of how openssl prints SMIME certs

openssl 0.9.8 and openssl 1.0.1 print the same cert
very differently. 1.0.1 prints the following thing:

    <key>:
        ... nested structure ...
    <otherkey>: <value>
        ... nested structure continues ...

Example:

    Data:
        ...
        Serial Number: 9974010075738841110 (0x8a6acd51be94a016)
    Signature Algorithm: sha1WithRSAEncryption
        Issuer: ...
        ...

So it's hard to say where Issuer belongs.

Now "<key>: <value>" strings don't delete pointers to existing
placeholders for nested structures. Hope output wouldn't get
more messier.
  • Loading branch information...
commit 81521f5eae00c0beb518a19f6591459f59360e8a 1 parent 9e56f97
@ruz ruz authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/RT/Crypt/SMIME.pm
View
10 lib/RT/Crypt/SMIME.pm
@@ -848,12 +848,12 @@ sub ParseCertificateInfo {
}
else {
$put_into->{$key} = {};
- }
- delete $prefix{$_} foreach
- grep length($_) > length($prefix),
- keys %prefix;
+ delete $prefix{$_} foreach
+ grep length($_) > length($prefix),
+ keys %prefix;
- ($prev_prefix, $prev_key) = ($prefix, $key);
+ ($prev_prefix, $prev_key) = ($prefix, $key);
+ }
}
my ($filter_out, $wfilter_out);
Please sign in to comment.
Something went wrong with that request. Please try again.