module documentation
Common functions for tool scripts.
| Function | |
Regenerates the client certificate of the node. |
| Function | |
Generates root's SSH keys for this node. |
| Function | |
Parses and verifies input data. |
| Function | |
Verifies cluster certificate if existing. |
| Function | |
Verifies cluster certificate. Throws error when not existing. |
| Function | |
Verifies cluster name. |
| Function | |
Verifies the presence of the hmac secret. |
| Function | |
Verifies options and arguments for correctness. |
| Function | _ |
Verifies a certificate against the local node daemon certificate. |
| Function | _ |
Verifies a certificate against the local node daemon certificate. |
def GenerateClientCertificate(data, error_fn, client_cert=pathutils.NODED_CLIENT_CERT_FILE, signing_cert=pathutils.NODED_CERT_FILE):
¶
Regenerates the client certificate of the node.
| Parameters | |
| data:string | the JSON-formated input data |
| error | Undocumented |
| client | Undocumented |
| signing | Undocumented |
Verifies cluster certificate if existing.
| Parameters | |
| data:dict | Undocumented |
| error | function to call in case of an error |
| _verify | Undocumented |
| Returns | |
| string | Formatted key and certificate |
Verifies cluster certificate. Throws error when not existing.
| Parameters | |
| data:dict | Undocumented |
| error | function to call in case of an error |
| _verify | Undocumented |
| Returns | |
| string | Formatted key and certificate |
def VerifyClusterName(data, error_fn, cluster_name_constant, _verify_fn=ssconf.VerifyClusterName):
¶
Verifies cluster name.
| Parameters | |
| data:dict | Undocumented |
| error | Undocumented |
| cluster | Undocumented |
| _verify | Undocumented |
Verifies a certificate against the local node daemon certificate.
| Parameters | |
| cert | Certificate in PEM format (no key) |
| error | Undocumented |
| _check | Undocumented |
Verifies a certificate against the local node daemon certificate.
Includes elaborate tests of encodings etc., and returns formatted certificate.
| Parameters | |
| cert | Certificate and key in PEM format |
| error | function to call in case of an error |
| _check | Undocumented |
| Returns | |
| string | Formatted key and certificate |