Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Sources/NIOSSL/SSLCertificate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public final class NIOSSLCertificate {
/// - parameters:
/// - file: The path to the file to load the certificate from.
/// - format: The format to use to parse the file.
private convenience init(_file file: String, format: NIOSSLSerializationFormats) throws {
internal convenience init(_file file: String, format: NIOSSLSerializationFormats) throws {
let fileObject = try Posix.fopen(file: file, mode: "rb")
defer {
fclose(fileObject)
Expand Down
5 changes: 2 additions & 3 deletions Sources/NIOSSL/SSLContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -688,9 +688,8 @@ extension NIOSSLContext {
// Load only the certificates that resolve to an existing certificate in the directory.
for symPath in certificateFilePaths {
// c_rehash only support pem files.
if let cert = try NIOSSLCertificate.fromPEMFile(symPath).first {
try addCACertificateNameToList(context: context, certificate: cert)
}
let cert = try NIOSSLCertificate(_file: symPath, format: .pem)
try addCACertificateNameToList(context: context, certificate: cert)
}
}
}
Expand Down