How to accept a ssl certificate in a bash or other script?

6,144

Solution 1

If you have your own CA, which has signed the server cert; you can trust that ca.

Solution 2

You can use a form of:

yes t | svn co --no-auth-cache --username USER --password PASSWORD https://repo directory

to work around this problem.

Share:
6,144

Related videos on Youtube

bassen
Author by

bassen

I have been exchanging knowledge for over 11 years, StackExchange just makes it easier. Come and find out which other SE sites I collaborate. Follow me on Twitter.

Updated on September 17, 2022

Comments

  • bassen
    bassen over 1 year

    Normally I use visual svn to setup and configure my svn repositories. By default visual svn uses https on port 8443. I want to create a script that export or checkouts some part of my repositories in a newly created server (cloud server). The only problem I am facing, is that when I try to do the svn export or checkout with the authentication arguments, I need to accept the ssl certificate on https. Is there any bash option to tell the os to accept the certificate?

    Thanks a lot, and let me know if you need more information.

  • bassen
    bassen almost 15 years
    Thanks Murphy. Do you have any opinion in how to overcome this difficulty?