Skip to content

Commit 1a41e71

Browse files
authored
Generate cert2.pem with a new certificate request
1 parent 6342526 commit 1a41e71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if(HTTPLIB_IS_USING_OPENSSL)
4949
COMMAND_ERROR_IS_FATAL ANY
5050
)
5151
execute_process(
52-
COMMAND ${OPENSSL_COMMAND} req -x509 -config ${CMAKE_CURRENT_LIST_DIR}/test.conf -key key.pem -sha256 -days 3650 -nodes -out cert2.pem -extensions SAN
52+
COMMAND ${OPENSSL_COMMAND} req -x509 -new -config ${CMAKE_CURRENT_LIST_DIR}/test.conf -key key.pem -sha256 -days 3650 -nodes -out cert2.pem -extensions SAN
5353
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
5454
COMMAND_ERROR_IS_FATAL ANY
5555
)

0 commit comments

Comments
 (0)