Re: [tor-dev] PKCS#1 ASN.1 Public Key Encoding

2014-08-17 Thread Gareth Owen
Yawning Thanks very much - you've saved me another few days down the wrong path! It seems I was taking the onion-key not the signing key. Would never have caught that this far down the rabbit hole without your response! Now to work out why Tor is detecting a different identity to the SSL cert I

Re: [tor-dev] PKCS#1 ASN.1 Public Key Encoding

2014-08-17 Thread Yawning Angel
On Sun, 17 Aug 2014 16:19:56 +0100 Gareth Owen wrote: > I'm trying to generate the fingerprint given just the pubilc key in > Java and after almost a whole day I'm about to give up. Does anyone > have a sample PKCS#1 encoded public key that is used immediately > before SHA-1 to generate the fing

[tor-dev] PKCS#1 ASN.1 Public Key Encoding

2014-08-17 Thread Gareth Owen
Hi all I wonder if someone might be able to help me with the above. I understand, that to generate the digest, the PK must be encoded in PKCS#1 format. And further to this, the public keys in the router descriptors are NOT in PKCS#1 format, but plain ASN.1. I'm trying to generate the fingerprin