Hi
I am looking for the possibility to get the size of the used key of a certificate.
I want to feed the bp with the keysize and need to know which max keysize a user can handle.
My idea is to check an already issued certificate for its keysize and use this as user data
in bp.
A quick solution would be to use CA.certificate.public_key and
"grep" the information from the Modulus string.
Example:
Modulus (2048 bit): 00:cc:8f:e8:43:87:da:a8:25:f6:29:e7:b4:9c:11: 7a:8a:75:6e:ca:92:bb:31:e4:09:7f:ff:7e:12:34: 1a:9e:f7:be:0b:12:33:16:c0:24:23:4a:8f:87:9a: 4f:e9:15:ed:e6:0a:86:c5:25:15:45:da:d5:d3:89: ac:5f:70:35:48:2c:05:af:dc:d8:32:18:92:29:eb: 32:d4:f9:e8:89:c8:62:a5:be:4d:aa:77:e2:00:27: 47:dc:c8:be:40:69:38:97:2b:f0:6f:6f:bd:84:5a: a5:97:b3:56:e5:0e:30:c4:02:a8:b3:88:89:86:e5: ca:c7:de:e6:71:ed:ab:f1:de:ec:ca:2b:4b:fc:ac: d9:d5:12:55:98:63:bd:c5:0a:fd:3d:0c:30:33:b6: 09:03:40:dc:06:b5:2a:61:16:ba:14:2e:4b:a0:4c: ff:ba:e2:ae:42:06:31:cf:54:1e:d9:3f:08:17:42: b4:ab:9e:2e:09:b6:cc:c5:57:3a:dd:43:1c:15:6b: 67:2a:bc:13:77:aa:37:6d:b1:40:b4:3c:73:ac:3a: 54:b1:fc:57:42:7d:ed:08:dc:52:b1:08:2f:b6:56: 07:89:d5:f3:ad:1f:ed:0c:13:b3:57:88:c8:18:f9: 2f:22:4e:82:41:c6:f4:54:6a:ea:6e:1d:06:1f:36: 44:11 Exponent: 65537 (0x10001)
I am not a friend of getting those information from parsing some text fields,
but at the moment there is no way around this, isn't it?
$cert->getParsed()->{KEYSIZE}
openca-0.9.3 needs defintively a key manage component. ;-)
Ok, then please specify what this component should do ;-) The new batch system is only so flexible because we really good know what we want. So it is the perfect example for a good plan.
Michael -- ------------------------------------------------------------------- Michael Bell Email: [EMAIL PROTECTED] ZE Computer- und Medienservice Tel.: +49 (0)30-2093 2482 (Computing Centre) Fax: +49 (0)30-2093 2704 Humboldt-University of Berlin Unter den Linden 6 10099 Berlin Email (private): [EMAIL PROTECTED] Germany http://www.openca.org
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ OpenCA-Devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openca-devel