Skip to content

Commit e73ff00

Browse files
committed
Temp File Fix
1 parent 1cc44fb commit e73ff00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Attestation/Format/FormatBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ protected function _createX5cChainFile() {
123123
}
124124

125125
if ($content) {
126-
$this->_x5c_tempFile = \sys_get_temp_dir() . '/x5c_chain_' . \base_convert(\rand(), 10, 36) . '.pem';
126+
$this->_x5c_tempFile = \tempnam(\sys_get_temp_dir(), 'x5c_');
127127
if (\file_put_contents($this->_x5c_tempFile, $content) !== false) {
128128
return $this->_x5c_tempFile;
129129
}

0 commit comments

Comments
 (0)