This commit is contained in:
mwiegand 2021-06-17 00:32:58 +02:00
parent 8fab376959
commit 4863713391
3 changed files with 10 additions and 35 deletions

View file

@ -45,18 +45,20 @@ def keys(metadata):
)
with open(privkey_path, 'w') as file:
file.write(
key.private_bytes(
crypto_serialization.Encoding.PEM,
crypto_serialization.PrivateFormat.PKCS8,
crypto_serialization.NoEncryption()
).decode()
repo.vault.encrypt(
key.private_bytes(
crypto_serialization.Encoding.PEM,
crypto_serialization.PrivateFormat.PKCS8,
crypto_serialization.NoEncryption()
).decode(),
)
)
with open(pubkey_path, 'r') as pubkey:
with open(privkey_path, 'r') as privkey:
keys[domain] = {
'public': pubkey.read(),
'private': privkey.read(),
'private': repo.vault.decrypt(privkey.read()),
}
return {

View file

@ -1 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1DDDUIj7qX9NovO8SbuzaL+cc4JInAVb2DXTHEZh7o9guW/n2drpLEUA6fS6d8yBWXvbijyp4X3+9qP0R2j64QMNFaK3crnXo0Og8ko2in2Tz9NeICN8wJtzLw8lTifCxarwPxHWbKsJLkZlZJS78+BSn4dDSjedNjnH/ah9ST0fVL/yi6NmQ8be5jZK1pXVgaED6RcjkdgXUI2DkfV5yM9lSx3LjhPj6iJWQ0ixMpKJEnBMfrOlcKDPmfJBiNkUyx4MJOBMhzy50oBPacYXVZoC1FsACT2TVkUQ52USW4jyxBozyyR3rIYeaGQkU33DYOgSQ6gF3sozW7HnIriHj
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpRC10airxCKFHYt6tsJNn1WvknzSX9HMYBwSawYroAS+Q6jt3ihdvES47zzpx3obeGSZgf1Wtnje+5B82LoMWWaGWTPJcagYkzZ14EzeM3qMQVplbO6aC2YrrHwpxN51NUSxaTATd8O+UVa8YqtILeIf07JZEP7LNGHsokvZMTvxpfQs7JpcHcrEU4gWDAr8fWOKX+pzyPCnDtSpIvUQzd+onclm8AZn4ArN4dJ8SswZ0MPPcJnu1eBLVqgCu3h+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