
openssl_x509_export_to_file 함수의 'output' 파라미터는 문자열(string) 타입의 변수여야 합니다.
예를 들어, 파일 경로를 저장한 변수를 선언하고 그 변수를 'output' 파라미터에 전달할 수 있습니다.
#hostingforum.kr
php
$filePath = '경로/파일명.pem';
openssl_x509_export_to_file($cert, $filePath);
또는 문자열을 직접 'output' 파라미터에 전달할 수도 있습니다.
#hostingforum.kr
php
openssl_x509_export_to_file($cert, '경로/파일명.pem');
2025-04-01 07:13