def test_Ssl(): cluster = Cluster('TestCluster', 'tmp', debug=True) # SSL App ssl = SslApp(cluster) a = ssl.create_keystore('mybroker') print('created keystore: %s' % (a, )) r = ssl.create_cert('myclient') print('created key: %s' % r) r = ssl.create_cert('selfsigned_myclient', with_ca=False) print('created key: %s' % r) r = ssl.create_cert('intermediate_myclient', through_intermediate=True) print('created key: %s' % r) r = ssl.create_cert('selfsigned_intermediate_myclient', with_ca=False, through_intermediate=True) print('created key: %s' % r) cluster.cleanup()
#!/usr/bin/env python from trivup.trivup import Cluster from trivup.apps.SslApp import SslApp if __name__ == '__main__': cluster = Cluster('TestCluster', 'tmp', debug=True) # SSL App ssl = SslApp(cluster) a = ssl.create_keystore('mybroker') print('created keystore: %s' % a) r = ssl.create_cert('myclient') print('created key: %s' % r) cluster.cleanup(keeptypes=[])
#!/usr/bin/env python from trivup.trivup import Cluster from trivup.apps.SslApp import SslApp import subprocess import time if __name__ == '__main__': cluster = Cluster('TestCluster', 'tmp', debug=True) # SSL App ssl = SslApp(cluster) a = ssl.create_keystore('mybroker') print('created keystore: %s' % str(a)) b = ssl.create_key('myclient') print('created key: %s' % str(b)) cluster.cleanup(keeptypes=[])