private...public...what the dif ?

This commit is contained in:
jeffcheasey88 2023-09-09 21:19:37 +02:00
parent 514452c295
commit 119e789900

View file

@ -124,8 +124,8 @@ public class MailConfirmation extends FormResponse {
post("https://git-users.peerat.dev/api/v1/admin/users/", createUser);
JSONObject sendKey = new JSONObject();
System.out.println("ssh-rsa "+new String(encoder.encode(pair.getPrivate().getEncoded())));
sendKey.put("key", "ssh-rsa "+new String(encoder.encode(pair.getPrivate().getEncoded())));
System.out.println("ssh-rsa "+new String(encoder.encode(pair.getPublic().getEncoded())));
sendKey.put("key", "ssh-rsa "+new String(encoder.encode(pair.getPublic().getEncoded())));
sendKey.put("read_only", false);
sendKey.put("title", "peer_at_code_auto_push_key_"+pseudo);
post("https://git-users.peerat.dev/api/v1/admin/users/"+pseudo+"/keys", sendKey);