<HTML><BODY><br>Rimvydas,<br>The first way works!<br>I moved and copied the cert files as you said and then copied old (corrupted) local.sqlite to /var/db/pkg and started pkg upgrade -f. The process in progress now and works as it should.<br>Thanks a lot.<br><br><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
        Понедельник, 11 ноября 2019, 15:47 +03:00 от Rimvydas Jasinskas <rimvydasjas@gmail.com>:<br>
        <br>
        <div id="">






<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
        <div>
                
                
            <div id="style_15734764710614159660_BODY">Ilia,<br>
<br>
You are getting ssl error at ssl_clnt.c:1121 if any of the<br>
/etc/ssl/cert.pem /usr/local/etc/ssl/cert.pem are corrupted or both<br>
are missing.<br>
Something is damaged after force shutdown in your base. Try this:<br>
# mv /etc/ssl/cert.pem /etc/ssl/cert.pem.orig<br>
# mv /usr/local/etc/ssl/cert.pem /usr/local/etc/ssl/cert.pem.orig<br>
# cp /usr/share/examples/etc/ssl/cert.pem /etc/ssl/cert.pem<br>
<br>
If that doesn't work, then as last resort you could disable SSL<br>
certificate verification (depending on shell you are using):<br>
# setenv SSL_NO_VERIFY_PEER yes<br>
# export SSL_NO_VERIFY_PEER=yes<br>
<br>
I hope this helps. Just in case I recommend to rebuild and reinstall<br>
both world and kernel.<br>
<br>
Best regards,<br>
Rimvydas<br>
</div>
            
        
                
        </div>

        
</div>


</div>
</blockquote>
<br>
<br>-- <br>Ilia Gorstkine<br></BODY></HTML>