|| at Oct 12, 2012 at 4:08 pm
There's no trivial way to do this that I'm aware of.
The currently supported types for Certifice.PublicKey are
crypto.rsa.PublicKey and crypto.dsa.PublicKey.
You can look at the PublicKey.N.BitLen() field which is a big.Int to
Seems like a method that would be worth adding to the Certificate struct,
or maybe there's a simpler way?
On Fri, Oct 12, 2012 at 1:31 AM, Paul van Brouwershaven wrote:
I'm try to get the bit size of the public key part of a certificate but
for some reason this is not listed by default in the go x509 Certificate
Does anyone know an other (easy) way to calculate the key size of a