"Root", 1 => "Client", 2 => "Admin", 3 => "Bundle", 4 => "Client", 5 => "Client Private Key", 6 => "Admin", 7 => "Admin Private Key", 8 => "Root", 9 => "Client"); class sslCertInfo { var $issuer; var $subject; var $notBefore; var $notAfter; var $status; var $type; function sslCertInfo($issuer, $subject, $notBefore, $notAfter, $status, $type) { $this->issuer = $issuer; $this->subject = $subject; $this->notBefore = $notBefore; $this->notAfter = $notAfter; $this->status = $status; $this->type = $type; } } // // Check for the existence of a user uploaded ssl certificate file. The system file ssl.pem will always be there. // $userSSLFile=file_exists("/home/embedded/library/HTTPService/certs/user_ssl.pem"); // // If /etc/use_user_ssl_cert exists, set the currentSSLType to "User Defined otherwise it is "System" // if (file_exists("/etc/use_user_ssl_cert")) { $currentSSLType="User Defined"; } else { $currentSSLType="System"; } // // generate system ssl certificate info // $CertInfo=shell_exec("openssl x509 -in /home/embedded/library/HTTPService/certs/ssl.pem -issuer -subject -dates -noout"); $tokens = explode("\n", $CertInfo,4); $data=array(); $tmpCertInfo=array(); for ($i=0;$iIsValid ) $status = "Expired"; else if( $info->ExpireSoon ) $status = "Expires
Soon
"; // Highlight the tags in the Issuer and Subject $old = array("C:", "S:", "L:", "O:", "OU:", "CN:"); $new = array("C:", "S:", "L:", "O:", "OU:", "CN:"); $Issuer = str_replace($old, $new, $info->Issuer); $Subject = str_replace($old, $new, $info->Subject); ?> Library SN?> NotValidBefore?>
NotValidAfter?>
Issuer: 
Subject: 
status == "Valid") $status = "Valid"; else $status = "Expired"; // Highlight the tags in the Issuer and Subject $old = array("C:", "ST:", "L:", "O:", "OU:", "CN:"); $new = array("C:", "ST:", "L:", "O:", "OU:", "CN:"); $Issuer = str_replace($old, $new, $info->issuer); $Subject = str_replace($old, $new, $info->subject); ?> type?> notBefore?>
notAfter?>
Issuer: 
Subject: 
Encryption Settings Communication Certificates
KMIP Communication Certificates

Import KMIP Key Manager TLS Communication Certificate
Root certificate file:
Client certificate file:
Client certificate password:



Installed KMIP Communication Certificates

(KMIP TLS communication certificates are not currently installed on the library)
Type]; print_cert_info($info, $Type); } ?>
Type  Location  Serial Number Valid Between Dates Status Issuer and Subject

SSL Communication Certificates
Set SSL Certificate Type or Upload User Defined Certificate
Current Certificate type:
Certificate type:
Certificate file:



Installed SSL Communication Certificates

Type Valid Between Dates Status Issuer and Subject