Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secure Connection Mode。Can't work normally。 #4

Open
853486395 opened this issue Jan 13, 2016 · 0 comments
Open

Secure Connection Mode。Can't work normally。 #4

853486395 opened this issue Jan 13, 2016 · 0 comments

Comments

@853486395
Copy link

Create key

Master:
一、
openssl genrsa -out ca-key.pem 2048 //CA key
openssl req -new -key ca-key.pem -out ca-csr.pem
openssl x509 -req -days 3650 -in ca-csr.pem -signkey ca-key.pem -out ca-cert.pem

二、
openssl genrsa -out server-key.pem 1024 // master key
openssl req -new -key server-key.pem -config openssl.cnf -out server-csr.pem
openssl x509 -req -days 3650 -CA ca-cert.pem -CAkey ca-key.pem -CAcreateserial -in server-csr.pem -out server-cert.pem -extensions v3_req -extfile openssl.cnf

Slave:
一、
openssl genrsa -out client-key.pem 1024 // client key
openssl req -new -key client-key.pem -out client-csr.pem
openssl x509 -req -days 3650 -CA ca-cert.pem -CAkey ca-key.pem -CAcreateserial -in client-csr.pem -out client-cert.pem

Run ktserver

ktserver Master:
ktserver -dmn -port 1920 -th 50 -sec -ca /root/ssl/ca-cert.pem -pk /root/ssl/server-key.pem -cert /root/ssl/server-cert.pem -log /data/kyoto/ktserver-log -pid /data/kyoto/ktserver.pid -ulog /data/kyoto/0001-ulog -sid 0001 -rts /data/kyoto/0001.rts /data/kyoto/casket-0001.kch

ktserver Slave:
ktserver -dmn -port 1919 -msec -rpk /root/ssl/client-key.pem -rcert /root/ssl/client-cert.pem -log /data/kyoto/ktserver-log -pid /data/kyoto/ktserver.pid -ulog /data/kyoto/0001-ulog -sid 0002 -mhost 220.181.68.44 -mport 1919 -rts /data/kyoto/0001.rts /data/kyoto/casket-0001.kch

I can't success rung.Why?Please help.The best can show for steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant