We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a772fa5 commit ec53b77Copy full SHA for ec53b77
platform-api/src/main/java/com/flow/platform/api/service/CredentialServiceImpl.java
@@ -116,10 +116,11 @@ public void delete(String name) {
116
public RSAKeyPair generateRsaKey() {
117
String comment = "FLOWCI";
118
int type = KeyPair.RSA;
119
+ final int keySize = 2048; // default 1024, bitbucket support at least 2048
120
JSch jsch = new JSch();
121
122
try {
- KeyPair kpair = KeyPair.genKeyPair(jsch, type);
123
+ KeyPair kpair = KeyPair.genKeyPair(jsch, type, keySize);
124
RSAKeyPair pair = new RSAKeyPair();
125
126
// private key
0 commit comments