Issue #3793 has been updated by Martin Bosslet.


There was not really much to add to Aaron's tests. I included a CA and an intermediate CA certificate, and one additional test.

But I noticed three things:

1) What is OpenSSL::PKCS12.new good for? It seems like it's useless - the PKCS12 attributes are read-only...

2) ... but probably shouldn't be? Currently, there's no way for changing a PKCS#12 file's password, which could be quite useful.

3) When writing the test I realized that OpenSSL::X509::Certificate and OpenSSL::PKey and as far as I know all the other classes
based on ASN.1 structures do not override '=='. But I think it's safe to define and would be more intuitive if equality for such
objects would be defined on the DER level, i.e. two objects are equal if their encoding is equal.

I'll open new issues for these.
----------------------------------------
Feature #3793: No test for OpenSSL::PKCS12
http://redmine.ruby-lang.org/issues/3793

Author: Hiroshi Nakamura
Status: Closed
Priority: Low
Assignee: Martin Bosslet
Category: ext
Target version: 1.9.x


=begin
 As a task.
=end



-- 
http://redmine.ruby-lang.org