We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cc44fb commit e73ff00Copy full SHA for e73ff00
src/Attestation/Format/FormatBase.php
@@ -123,7 +123,7 @@ protected function _createX5cChainFile() {
123
}
124
125
if ($content) {
126
- $this->_x5c_tempFile = \sys_get_temp_dir() . '/x5c_chain_' . \base_convert(\rand(), 10, 36) . '.pem';
+ $this->_x5c_tempFile = \tempnam(\sys_get_temp_dir(), 'x5c_');
127
if (\file_put_contents($this->_x5c_tempFile, $content) !== false) {
128
return $this->_x5c_tempFile;
129
0 commit comments