Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@

import com.google.common.base.Strings;

//import org.bouncycastle.x509.extension.SubjectKeyIdentifierStructure;

public class CertUtils {

private static final Logger LOG = Logger.getLogger(CertUtils.class);
Expand Down Expand Up @@ -132,7 +130,7 @@ public static PrivateKey pemToPrivateKey(final String pem) throws InvalidKeySpec
}

public static String privateKeyToPem(final PrivateKey key) throws IOException {
final PemObject pemObject = new PemObject("RSA PRIVATE KEY", key.getEncoded());
final PemObject pemObject = new PemObject("PRIVATE KEY", key.getEncoded());
final StringWriter sw = new StringWriter();
try (final PemWriter pw = new PemWriter(sw)) {
pw.writeObject(pemObject);
Expand Down