#social 2019-11-21

2019-11-21 UTC
meff[m] joined the channel
#
meff[m]
are there any generic ActivityPub viewers?
sl007, sl0071, BitBot and ayorosmage joined the channel
#
ayorosmage
Hi
#
ayorosmage
I'm trying to implement a server in golang which communicates with mastodon
gobengo-irc-bot joined the channel
#
ayorosmage
I'm using the following tutorial
#
ayorosmage
Everything works fine exepted when mastodon verify my actor (on my server)
#
ayorosmage
I have the following error:
#
ayorosmage
Verification failed for alice@.....com
#
ayorosmage
I checked the mastodon source code
#
ayorosmage
And my error come from the following line of code
#
ayorosmage
public_key.verify(OpenSSL::Digest::SHA256.new, signature, compare_signed_string)
#
ayorosmage
On my server, i'm encoding the signature with the rsa.SignPKCS1v15(rand.Reader, privateKey, crypto.SHA256, h.Sum(nil)) golang method
#
ayorosmage
Does anyone know if the SSL implementation from ruby and golang are incompatible !?
#
ayorosmage
(thanks for reading)
#
cjslep[m]
Use go-fed httpsig implementation as guidance if you don't want to use that library
#
cjslep[m]
@ayorosmage
BitBot joined the channel
#
cjslep[m]
Golang and Ruby are compatible.
#
ayorosmage
Thank you, I will to the test tomorrow
#
ayorosmage
But internally it also use the golang "crypto" lib
benaiah, gobengo-irc-bot, sl007 and trwnh joined the channel
#
cjslep[m]
Yes, it does
elisabeth[m] joined the channel