Tk Library Source Code

View Ticket
Login
Ticket UUID: 3440045
Title: ::pki::x509::_list_to_dn invalid char
Type: Bug Version: None
Submitter: Created on: 2011-11-18 20:55:14
Subsystem: pki Assigned To: rkeene
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2012-02-21 00:09:16
Resolution: Fixed Closed By: rkeene
    Closed on: 2012-02-19 02:04:23
Description:
here is another fix, may be is already considered

proc ::pki::x509::_list_to_dn {name} {
set ret ""
foreach {oid_name value} $name {
if {![regexp {[^ A-Za-z0-9'()+,.:/?=-]} $value]} {
set avalue [::asn::asnPrintableString $value]
} else {
set avalue [::asn::asnUTF8String $value]
}
append ret [::asn::asnSet \
[::asn::asnSequence \
[::asn::asnObjectIdentifier [::pki::_oid_name_to_number $oid_name]] \
$avalue \
] \
] \
}

return $ret
}
User Comments: rkeene added on 2012-02-19 09:04:23:

allow_comments - 1

Fixed in pki 0.3, commited to CVS

added on 2011-11-19 06:33:22:
following the bug ID: 3439693, looks like replacing ::asn::asnPrintableString to ::asn::asnString in ::pki::x509::_list_to_dn solves the problem too.

added on 2011-11-19 03:59:24:
there are 3 adendums i made regarding to key generation, kay parse and key convert2pem
how should i submit them?