Ceph client code to automate key generation