Skip to content

Commit

Permalink
fix manhole invalid key length error matrix-org#3291
Browse files Browse the repository at this point in the history
  • Loading branch information
bai committed Oct 18, 2018
1 parent 92faeb2 commit b9c5b88
Showing 1 changed file with 14 additions and 33 deletions.
47 changes: 14 additions & 33 deletions synapse/util/manhole.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,41 +18,22 @@
from twisted.conch.ssh.keys import Key
from twisted.cred import checkers, portal

PUBLIC_KEY = (
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDHhGATaW4KhE23+7nrH4jFx3yLq9OjaEs5"
"XALqeK+7385NlLja3DE/DO9mGhnd9+bAy39EKT3sTV6+WXQ4yD0TvEEyUEMtjWkSEm6U32+C"
"DaS3TW/vPBUMeJQwq+Ydcif1UlnpXrDDTamD0AU9VaEvHq+3HAkipqn0TGpKON6aqk4vauDx"
"oXSsV5TXBVrxP/y7HpMOpU4GUWsaaacBTKKNnUaQB4UflvydaPJUuwdaCUJGTMjbhWrjVfK+"
"jslseSPxU6XvrkZMyCr4znxvuDxjMk1RGIdO7v+rbBMLEgqtSMNqJbYeVCnj2CFgc3fcTcld"
"X2uOJDrJb/WRlHulthCh"
)
PUBLIC_KEY ="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDnWgGzx9pRh9cc+qRHUOamvvVmm05nDW5c38AyOjWLIj+bRyGORKZqPzBIibBbP5xo/LsLObkkYy4F1Ou4sRJRgp544TIAhyfH2EP4PMHQfXRTLVH/TPKBxEs3X0Aovp9dExZRSAaqEKCBWHyf8E9jniLNnOF1sK9AD8cXHpn0Qw=="

PRIVATE_KEY = """-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAx4RgE2luCoRNt/u56x+Ixcd8i6vTo2hLOVwC6nivu9/OTZS4
2twxPwzvZhoZ3ffmwMt/RCk97E1evll0OMg9E7xBMlBDLY1pEhJulN9vgg2kt01v
7zwVDHiUMKvmHXIn9VJZ6V6ww02pg9AFPVWhLx6vtxwJIq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