master
Bob Mottram 2019-06-28 20:52:35 +01:00
parent 7e99a5907f
commit 7cd716ddab
1 changed files with 9 additions and 3 deletions

View File

@ -17,13 +17,19 @@ import requests
from pprint import pprint from pprint import pprint
from httpsig import testHttpsig from httpsig import testHttpsig
from daemon import runDaemon from daemon import runDaemon
import socket
username='testuser'
#domain=socket.gethostname()
domain='mydomain.com'
port=6227
https=True
useTor=False useTor=False
session = createSession(useTor) session = createSession(useTor)
privateKeyPem,publicKeyPem,person,wfEndpoint=createPerson('testuser','mydomain.com',True,True) privateKeyPem,publicKeyPem,person,wfEndpoint=createPerson(username,domain,https,True)
setPreferredUsername('testuser','mydomain.com','badger') setPreferredUsername(username,domain,'badger')
runDaemon('mydomain.com',6227,False) runDaemon(domain,port,useTor)
#testHttpsig() #testHttpsig()
#sys.exit() #sys.exit()