-
Notifications
You must be signed in to change notification settings - Fork 54
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
Is it possible to add a key to the Certificate Authority? #57
Labels
enhancement
New feature or request
Comments
I don't have a need for it so it's not high on my priority list. PRs are welcome though. |
Are you looking for the equivalent of the "create internal CA" web configuration, or something different? |
If this is related to the possibility to import a CA with a private key, it can be simply implemented : if params['key'] is not None:
ca_key = params['key']
lines = ca_key.splitlines()
if lines[0] == '-----BEGIN PRIVATE KEY-----' and lines[-1] == '-----END PRIVATE KEY-----':
params['key'] = base64.b64encode(ca_key.encode()).decode()
elif not re.match('LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0t', ca_key):
self.module.fail_json(msg='Could not recognize CA key format: %s' % (ca_key)) And in if 'key' in params and params['key'] is not None:
obj['prv'] = params['key'] |
opoplawski
added a commit
that referenced
this issue
Jan 26, 2025
opoplawski
added a commit
that referenced
this issue
Jan 26, 2025
opoplawski
added a commit
that referenced
this issue
Jan 26, 2025
opoplawski
added a commit
that referenced
this issue
Jan 26, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If not, is there any plan to add this feature?
The text was updated successfully, but these errors were encountered: