{"id":134,"date":"2017-08-24T20:51:00","date_gmt":"2017-08-24T18:51:00","guid":{"rendered":"http:\/\/www.ncodenicer.com\/?p=134"},"modified":"2026-05-11T07:12:42","modified_gmt":"2026-05-11T05:12:42","slug":"mono-4-8-1-with-tls-1-2-on-freebsd","status":"publish","type":"post","link":"https:\/\/www.codenicer.com\/?p=134","title":{"rendered":"Mono 4.8.1 with TLS 1.2 on FreeBSD"},"content":{"rendered":"\n<p>TLS 1.2 is not enabled in default version of Mono 4.8.1 port for FreeBSD.<\/p>\n\n\n\n<p>To enable it several changes are needed:<br><code><br>Index: Makefile<br>===================================================================<br>--- Makefile (revision 445025)<br>+++ Makefile (working copy)<br>@@ -45,7 +45,8 @@<br>mono:ikdasm:e4deabf:8\/external\/ikdasm \\<br>mono:ikvm-fork:367864e:9\/external\/ikvm \\<br>mono:reference-assemblies:6c77197:10\/external\/binary-reference-assemblies \\<br>- mono:rx:b29a4b0:11\/external\/rx<br>+ mono:rx:b29a4b0:11\/external\/rx \\<br>+ mono:boringssl:c06ac6b:12\/external\/boringssl<\/code><\/p>\n\n\n\n<p><code>USES= autoreconf bison compiler:c11 cpe gettext gmake iconv libtool pathfix \\<br>perl5 python shebangfix tar:bzip2<br>@@ -55,7 +56,7 @@<br>USE_LDCONFIG= yes<br>SHEBANG_FILES= scripts\/mono-heapviz<\/code><\/p>\n\n\n\n<p><code>-CONFIGURE_ARGS= --disable-dtrace<br>+CONFIGURE_ARGS= --disable-dtrace --enable-btls<br>CONFIGURE_ENV= ac_cv_header_sys_inotify_h=no<\/code><\/p>\n\n\n\n<p><code>MAKE_ENV= MONO_SHARED_DIR=\"${WRKDIR}\" \\<br>Index: distinfo<br>===================================================================<br>--- distinfo (revision 445025)<br>+++ distinfo (working copy)<br>@@ -33,3 +33,5 @@<br>SIZE (dotnet-coreclr-c7da48a_GH0.tar.gz) = 31762122<br>SHA256 (dotnet-roslyn-322bd5b_GH0.tar.gz) = 9740a0922f2fafa0251f462e7f27cfd6891dc078c22b008c49e11db6637edeea<br>SIZE (dotnet-roslyn-322bd5b_GH0.tar.gz) = 22058493<br>+SHA256 (mono-boringssl-c06ac6b_GH0.tar.gz) = c3b867537afa5a388c7ed43a0b358ec731093cb9c499e1af58bc4b5390287dee<br>+SIZE (mono-boringssl-c06ac6b_GH0.tar.gz) = 4121971<br>Index: files\/patch-configure.ac<br>===================================================================<br>--- files\/patch-configure.ac (revision 445025)<br>+++ files\/patch-configure.ac (working copy)<br>@@ -17,3 +17,21 @@<br>PLATFORM_AOT_SUFFIX=.so<br>fi<\/code><\/p>\n\n\n\n<p><code>+@@ -3002,6 +3003,8 @@<br>+ BTLS_PLATFORM=i386<br>+ ;;<br>+ openbsd*|freebsd*|kfreebsd-gnu*)<br>++ BTLS_SUPPORTED=yes<br>++ BTLS_PLATFORM=i386<br>+ ;;<br>+ esac<br>+ ;;<br>+@@ -3025,6 +3028,8 @@<br>+ BTLS_PLATFORM=x86_64<br>+ ;;<br>+ openbsd*|freebsd*|kfreebsd-gnu*)<br>++ BTLS_SUPPORTED=yes<br>++ BTLS_PLATFORM=x86_64<br>+ ;;<br>+ mingw*)<br>+ ;;<br><\/code><\/p>\n\n\n\n<p>Version of port with these changes applied is attached<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>TLS 1.2 is not enabled in default version of Mono 4.8.1 port for FreeBSD. To enable it several changes are needed:Index: Makefile===================================================================&#8212; Makefile (revision 445025)+++ Makefile (working copy)@@ -45,7 +45,8 @@mono:ikdasm:e4deabf:8\/external\/ikdasm \\mono:ikvm-fork:367864e:9\/external\/ikvm \\mono:reference-assemblies:6c77197:10\/external\/binary-reference-assemblies \\- mono:rx:b29a4b0:11\/external\/rx+ mono:rx:b29a4b0:11\/external\/rx \\+ mono:boringssl:c06ac6b:12\/external\/boringssl USES= autoreconf bison compiler:c11 cpe gettext gmake iconv libtool pathfix \\perl5 python shebangfix tar:bzip2@@ -55,7 +56,7 @@USE_LDCONFIG= [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6,47,13],"class_list":["post-134","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-freebsd","tag-mono","tag-tls"],"_links":{"self":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=134"}],"version-history":[{"count":1,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/134\/revisions"}],"predecessor-version":[{"id":135,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/134\/revisions\/135"}],"wp:attachment":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}