Skip to content

Commit

Permalink
allow cer file like crt file
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jul 26, 2023
1 parent 6b1ee1e commit 225784f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion symmetric-assemble/src/asciidoc/manage/security.ad
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The Security panel manages the SSL/TLS certificates and keys.

The server certificate and private key are used for encrypting the HTTPS transport of data. The certificate can also be used to verify a node when client authentication is enabled. The server certificate is stored in a protected keystore named `security/keystore`.

Import certificate and key from file:: Upload a file containing the server certificate and private key, which can then be imported. If the file is a keystore with multiple entries, the user is prompted to select one from the list. If the file is a protected keystore, the user is prompted for the password. File types supported are PEM, CRT, PFX, and P12, with support for PKCS 1, PKCS 8, and PKCS 12 standards.
Import certificate and key from file:: Upload a file containing the server certificate and private key, which can then be imported. If the file is a keystore with multiple entries, the user is prompted to select one from the list. If the file is a protected keystore, the user is prompted for the password. File types supported are PEM, CRT, CER, PFX, and P12, with support for PKCS 1, PKCS 8, and PKCS 12 standards.
Backup certificate key to file:: Backup the current server certificate and private key to a PEM-encoded text file.
Export certificate to file:: Export the current certificate to a PEM-encoded text file.
Generate self-signed certificate:: Generate a new key and self-signed certificate.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ protected Entry createSslCert(byte[] content, String fileType, String alias, Str
chain = new Certificate[1];
chain[0] = store.getCertificate(alias);
}
} else if (fileType.equalsIgnoreCase("pem") || fileType.equalsIgnoreCase("crt")) {
} else if (fileType.equalsIgnoreCase("pem") || fileType.equalsIgnoreCase("crt") || fileType.equalsIgnoreCase("cer")) {
List<Certificate> certs = new ArrayList<Certificate>();
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
String line = null;
Expand Down

0 comments on commit 225784f

Please sign in to comment.