curl: (60) SSL certificate problem: certificate has expired while building MikTeX from source
Mia Lopez
I am trying to build MikTeX on a fresh Ubuntu 22.04 but got an error about curl: (60) SSL certificate problem. The build process has worked before.
I build from source following the official instructions. I basically cloned the source at , then built with:
mkdir -p build/ && (cd build/ && cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/miktex .. && sudo cmake --build . --target install)The error message is below. I've tried updating with apt, to no avail. I am not sure where to trace to problem, and the which certificate expired. I looked into the install instructions linked above. But there is no mention of curl.
Does anyone know how to fix the issue?
INFOfribidi libs: /usr/lib/x86_64-linux-gnu/libfribidi.so
INFOfribidi incs: /usr/include/fribidi;/usr/include
-- Found the following ICU libraries:
-- i18n (required)
-- uc (required)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xxx/src/miktex/build
[sudo] password for xxx:
[ 0%] Generating miktex-fontconfig.tar.lzma
[ 0%] Generating miktex-misc.tar.lzma
[ 0%] Generating tetex.tar.lzma
curl: (60) SSL certificate problem: certificate has expired
More details here:
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
gmake[2]: *** [CMakeFiles/ tetex.tar.lzma] Error 60
gmake[1]: *** [CMakeFiles/Makefile2:3579: CMakeFiles/ Error 2
gmake: *** [Makefile:166: all] Error 2 Reset to default