~$ $GOPATH/bin/server -config=$GOPATH/src/github.com/tinode/chat/server/tinode.conf -static_data=$HOME/tinode/webapp/
2019/10/31 14:57:08 Server v0.16:/Users/hanuman/go/bin/server:undef; db: 'mysql'; pid 51128; 4 process(es)
2019/10/31 14:57:08 Using config from '/Users/hanuman/go/src/github.com/tinode/chat/server/tinode.conf'
2019/10/31 14:57:08 Running as a standalone server.
2019/10/31 14:57:08 Restricted tags: ['tel' 'email' 'basic']
2019/10/31 14:57:10 plugins: no active plugins found
2019/10/31 14:57:10 gRPC/1.25.0-dev server is registered at [:6061]
2019/10/31 14:57:10 Serving static content from '/Users/hanuman/tinode/webapp/' at '/'
2019/10/31 14:57:10 Large media handling enabled s3
2019/10/31 14:57:10 stats: variables exposed at '/debug/vars'
2019/10/31 14:57:10 Listening for client HTTP connections on [:6060]
2019/10/31 14:57:25 invalid apikey signature
2019/10/31 14:57:25 ws: Missing, invalid or expired API key
2019/10/31 14:57:31 invalid apikey signature
2019/10/31 14:57:31 ws: Missing, invalid or expired API key
2019/10/31 14:57:39 invalid apikey signature
2019/10/31 14:57:39 ws: Missing, invalid or expired API key
YES. I've updated the salt key in server and API KEY in client side!
API key v1 seq1 [ordinary]: AQAAAAABAABsqzxOhbGEF-wx3qFSAI8P
Used HMAC salt: V/EVUR+0xNsrwysP9Gju7s3gfoc4qUC63hGzyB5rGFs=
******* SERVER (tinode.conf) *****************
// Salt for signing API key. 32 random bytes base64-encoded. Use 'keygen' to generate
// the API key and the salt.
"api_key_salt": " ???????",
// Token authentication
"token": {
// Lifetime of a security token in seconds. 1209600 = 2 weeks.
"expire_in": 1209600,
// Serial number of the token. Can be used to invalidate all issued tokens at once.
"serial_num": 1,
// Secret key (HMAC salt) for signing the tokens. Generate your own then keep it secret.
// 32 random bytes base64 encioded.
//
// === IMPORTANT ===
//
// CHANGE IT IN PRODUCTION!!! Otherwise anyone will be able to log in
// to your server without the password.
"key": "???????????"
}
},
**** CLIENT SIDE ********
API key v1 seq1 [ordinary]: AQAAAAABAABsqzxOhbGEF-wx3qFSAI8P
Used HMAC salt: V/EVUR+0xNsrwysP9Gju7s3gfoc4qUC63hGzyB5rGFs=
2019/10/31 15:55:32 invalid apikey signature
2019/10/31 15:55:32 ws: Missing, invalid or expired API key
API key v1 seq1 [ordinary]: AQAAAAABAACvHfpg88Ix6osHgaX8fyUC
Used HMAC salt: pgBnG0ICuW0HkSNOI/HKM/JORffKrlRecNIxnAL1XBc=
Hi, tell me please how use the generator?No matter where I run the command './keygen' it gives an error: «bash: ./keygen: No such file or directory»What is the file folder for then? '$GOPATH/pkg/mod/github.com/tinode/ch...@v0.22.10/keygen'
--
You received this message because you are subscribed to a topic in the Google Groups "Tinode General" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tinode/aSTi1ablh38/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tinode+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tinode/1e3fae7d-f195-4646-a054-3c6b0dfcd84en%40googlegroups.com.
No, what do I need to install?
Tell me please what I need to do on Debian?
Gene, Thank you!!
Why don't you include a ready-made "keygen" file for use?
You received this message because you are subscribed to the Google Groups "Tinode General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinode+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tinode/7918b6c5-a765-4069-8fb8-7834ce8817bcn%40googlegroups.com.