How do you accept an SSL certificate through the SVN command line?Setting up Redmine With the Bitnami stack installer on Windows Server 2003svn won't accept my invalid certificateHow to accept a ssl certificate in a bash or other script?What's the command-line utility in Windows to do a reverse DNS look-up?Save Remote SSL Certificate via Linux Command Linehow to download the ssl certificate from a website?How to get the url of the current svn repo?Can an SSL certificate be on a single line in a file (no line breaks)?Import an SSL Certificate into IIS 7 from the command lineCommand line tool for fetching and analyzing SSL certificateReplace wildcard certificate on multiple sites at once (using command line) on IIS 7.5

Do I have any obligations to my PhD supervisor's requests after I have graduated?

How dangerous are set-size assumptions?

If I wouldn't want to read the story, is writing it still a good idea?

Why aren't non-isolated DC-DC converters made for high wattage applications?

How does DC work with natural 20?

Dates on degrees don’t make sense – will people care?

Why do some professors with PhDs leave their professorships to teach high school?

Can there be an UN resolution to remove a country from the UNSC?

Why tighten down in a criss-cross pattern?

"How can you guarantee that you won't change/quit job after just couple of months?" How to respond?

Java TreeMap.floorKey() equivalent for std::map

What does "play with your toy’s toys" mean?

Count All Possible Unique Combinations of Letters in a Word

Why is it recommended to mix yogurt starter with a small amount of milk before adding to the entire batch?

Trainee keeps missing deadlines for independent learning

Dystopia where people are regularly forced to move, protagonist must move daily

Output of "$OSTYPE:6" on old releases of Mac OS X

How many children?

Understanding the reasoning of the woman who agreed with King Solomon to "cut the baby in half"

What can I do with a research project that is my university’s intellectual property?

Can any NP-Complete Problem be solved using at most polynomial space (but while using exponential time?)

Should I prioritize my 401k over my student loans?

Hot coffee brewing solutions for deep woods camping

.NET executes a SQL query and Active Monitor shows multiple rows blocking each other



How do you accept an SSL certificate through the SVN command line?


Setting up Redmine With the Bitnami stack installer on Windows Server 2003svn won't accept my invalid certificateHow to accept a ssl certificate in a bash or other script?What's the command-line utility in Windows to do a reverse DNS look-up?Save Remote SSL Certificate via Linux Command Linehow to download the ssl certificate from a website?How to get the url of the current svn repo?Can an SSL certificate be on a single line in a file (no line breaks)?Import an SSL Certificate into IIS 7 from the command lineCommand line tool for fetching and analyzing SSL certificateReplace wildcard certificate on multiple sites at once (using command line) on IIS 7.5






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








19















Is there an command line option to auto accept a SSL certificate permanently using the SVN commandline in a way that avoids the prompt?










share|improve this question






















  • Would this be a better fit at Stack Overflow?

    – James McMahon
    Jul 8 '09 at 20:46

















19















Is there an command line option to auto accept a SSL certificate permanently using the SVN commandline in a way that avoids the prompt?










share|improve this question






















  • Would this be a better fit at Stack Overflow?

    – James McMahon
    Jul 8 '09 at 20:46













19












19








19


2






Is there an command line option to auto accept a SSL certificate permanently using the SVN commandline in a way that avoids the prompt?










share|improve this question














Is there an command line option to auto accept a SSL certificate permanently using the SVN commandline in a way that avoids the prompt?







ssl svn command-line-interface






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 8 '09 at 20:34









James McMahonJames McMahon

6032816




6032816












  • Would this be a better fit at Stack Overflow?

    – James McMahon
    Jul 8 '09 at 20:46

















  • Would this be a better fit at Stack Overflow?

    – James McMahon
    Jul 8 '09 at 20:46
















Would this be a better fit at Stack Overflow?

– James McMahon
Jul 8 '09 at 20:46





Would this be a better fit at Stack Overflow?

– James McMahon
Jul 8 '09 at 20:46










4 Answers
4






active

oldest

votes


















19














It depends somewhat on your version of SVN. Recent (1.6+) ones have the usual --non-interactive (which you want to use to avoid prompts) and also a --trust-server-cert that may do what you want.






share|improve this answer

























  • This solution seems to work. Unfortunately the command line certificate accept didn't solve my initial problem. Oh well, at least I know what doesn't work now.

    – James McMahon
    Jul 9 '09 at 15:19











  • If this still doesn't work, it may be because you can't access/create the .subversion directory in your home directory. Solution found here: chipsandtv.com/articles/svn-invalid-certificates

    – icc97
    Apr 26 '12 at 16:40











  • The chipsandtv.com link is dead. Is there another source?

    – Joe McMahon
    Jan 17 '13 at 1:01











  • web.archive.org/web/20120512113710/http://chipsandtv.com/…

    – sergtk
    Aug 25 '13 at 21:13











  • I ended up having to use both options, now it works, thanks!

    – rogerdpack
    Apr 29 '15 at 20:38


















10














Using --trust-server-cert will not permanently accept the SSL certificate. You can permanently accept the SSL certificate via the command line using Input Redirection and not using --non-interactive.



Here's an example for Unix/Linux:



svn list [TARGET] << EOF
p
EOF


NOTE: The "p" above is for (p)ermanently.






share|improve this answer

























  • Well, my version (1.6.6 (r40053)) unfortunately simply won't offer the p (permanently) option at all. And since this is on an ancient box which I can't update any longer ...

    – 0xC0000022L
    Mar 8 '17 at 14:45


















2














My solution uses expect. It isn't secure but it will work when the other solutions won't.



#!/usr/bin/expect -f

set svn_username [lindex $argv 0]
set svn_password [lindex $argv 1]
set svn_url [lindex $argv 2]

spawn svn --username=$svn_username --password=$svn_password list $svn_url
expect "(R)eject, accept (t)emporarily or accept (p)ermanently? "
send -- "pr"
expect "Store password unencrypted (yes/no)? "
send "nor"
expect -re "root@.*:/#"





share|improve this answer






























    0














    You should be able to download the certificate and then place it in the appropriate directory. Or you can download the CA certificate and then set the configuration option ssl-authority-files to trust that CA.



    See the SSL Certificate Management section in the book.






    share|improve this answer























    • I'm in a very strange situation here, see serverfault.com/questions/7648/…, so I want to be able to pull it off in one command.

      – James McMahon
      Jul 8 '09 at 21:07













    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f37929%2fhow-do-you-accept-an-ssl-certificate-through-the-svn-command-line%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    19














    It depends somewhat on your version of SVN. Recent (1.6+) ones have the usual --non-interactive (which you want to use to avoid prompts) and also a --trust-server-cert that may do what you want.






    share|improve this answer

























    • This solution seems to work. Unfortunately the command line certificate accept didn't solve my initial problem. Oh well, at least I know what doesn't work now.

      – James McMahon
      Jul 9 '09 at 15:19











    • If this still doesn't work, it may be because you can't access/create the .subversion directory in your home directory. Solution found here: chipsandtv.com/articles/svn-invalid-certificates

      – icc97
      Apr 26 '12 at 16:40











    • The chipsandtv.com link is dead. Is there another source?

      – Joe McMahon
      Jan 17 '13 at 1:01











    • web.archive.org/web/20120512113710/http://chipsandtv.com/…

      – sergtk
      Aug 25 '13 at 21:13











    • I ended up having to use both options, now it works, thanks!

      – rogerdpack
      Apr 29 '15 at 20:38















    19














    It depends somewhat on your version of SVN. Recent (1.6+) ones have the usual --non-interactive (which you want to use to avoid prompts) and also a --trust-server-cert that may do what you want.






    share|improve this answer

























    • This solution seems to work. Unfortunately the command line certificate accept didn't solve my initial problem. Oh well, at least I know what doesn't work now.

      – James McMahon
      Jul 9 '09 at 15:19











    • If this still doesn't work, it may be because you can't access/create the .subversion directory in your home directory. Solution found here: chipsandtv.com/articles/svn-invalid-certificates

      – icc97
      Apr 26 '12 at 16:40











    • The chipsandtv.com link is dead. Is there another source?

      – Joe McMahon
      Jan 17 '13 at 1:01











    • web.archive.org/web/20120512113710/http://chipsandtv.com/…

      – sergtk
      Aug 25 '13 at 21:13











    • I ended up having to use both options, now it works, thanks!

      – rogerdpack
      Apr 29 '15 at 20:38













    19












    19








    19







    It depends somewhat on your version of SVN. Recent (1.6+) ones have the usual --non-interactive (which you want to use to avoid prompts) and also a --trust-server-cert that may do what you want.






    share|improve this answer















    It depends somewhat on your version of SVN. Recent (1.6+) ones have the usual --non-interactive (which you want to use to avoid prompts) and also a --trust-server-cert that may do what you want.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jun 5 at 18:02









    Dan Atkinson

    126129




    126129










    answered Jul 9 '09 at 14:20









    pjzpjz

    10.1k12640




    10.1k12640












    • This solution seems to work. Unfortunately the command line certificate accept didn't solve my initial problem. Oh well, at least I know what doesn't work now.

      – James McMahon
      Jul 9 '09 at 15:19











    • If this still doesn't work, it may be because you can't access/create the .subversion directory in your home directory. Solution found here: chipsandtv.com/articles/svn-invalid-certificates

      – icc97
      Apr 26 '12 at 16:40











    • The chipsandtv.com link is dead. Is there another source?

      – Joe McMahon
      Jan 17 '13 at 1:01











    • web.archive.org/web/20120512113710/http://chipsandtv.com/…

      – sergtk
      Aug 25 '13 at 21:13











    • I ended up having to use both options, now it works, thanks!

      – rogerdpack
      Apr 29 '15 at 20:38

















    • This solution seems to work. Unfortunately the command line certificate accept didn't solve my initial problem. Oh well, at least I know what doesn't work now.

      – James McMahon
      Jul 9 '09 at 15:19











    • If this still doesn't work, it may be because you can't access/create the .subversion directory in your home directory. Solution found here: chipsandtv.com/articles/svn-invalid-certificates

      – icc97
      Apr 26 '12 at 16:40











    • The chipsandtv.com link is dead. Is there another source?

      – Joe McMahon
      Jan 17 '13 at 1:01











    • web.archive.org/web/20120512113710/http://chipsandtv.com/…

      – sergtk
      Aug 25 '13 at 21:13











    • I ended up having to use both options, now it works, thanks!

      – rogerdpack
      Apr 29 '15 at 20:38
















    This solution seems to work. Unfortunately the command line certificate accept didn't solve my initial problem. Oh well, at least I know what doesn't work now.

    – James McMahon
    Jul 9 '09 at 15:19





    This solution seems to work. Unfortunately the command line certificate accept didn't solve my initial problem. Oh well, at least I know what doesn't work now.

    – James McMahon
    Jul 9 '09 at 15:19













    If this still doesn't work, it may be because you can't access/create the .subversion directory in your home directory. Solution found here: chipsandtv.com/articles/svn-invalid-certificates

    – icc97
    Apr 26 '12 at 16:40





    If this still doesn't work, it may be because you can't access/create the .subversion directory in your home directory. Solution found here: chipsandtv.com/articles/svn-invalid-certificates

    – icc97
    Apr 26 '12 at 16:40













    The chipsandtv.com link is dead. Is there another source?

    – Joe McMahon
    Jan 17 '13 at 1:01





    The chipsandtv.com link is dead. Is there another source?

    – Joe McMahon
    Jan 17 '13 at 1:01













    web.archive.org/web/20120512113710/http://chipsandtv.com/…

    – sergtk
    Aug 25 '13 at 21:13





    web.archive.org/web/20120512113710/http://chipsandtv.com/…

    – sergtk
    Aug 25 '13 at 21:13













    I ended up having to use both options, now it works, thanks!

    – rogerdpack
    Apr 29 '15 at 20:38





    I ended up having to use both options, now it works, thanks!

    – rogerdpack
    Apr 29 '15 at 20:38













    10














    Using --trust-server-cert will not permanently accept the SSL certificate. You can permanently accept the SSL certificate via the command line using Input Redirection and not using --non-interactive.



    Here's an example for Unix/Linux:



    svn list [TARGET] << EOF
    p
    EOF


    NOTE: The "p" above is for (p)ermanently.






    share|improve this answer

























    • Well, my version (1.6.6 (r40053)) unfortunately simply won't offer the p (permanently) option at all. And since this is on an ancient box which I can't update any longer ...

      – 0xC0000022L
      Mar 8 '17 at 14:45















    10














    Using --trust-server-cert will not permanently accept the SSL certificate. You can permanently accept the SSL certificate via the command line using Input Redirection and not using --non-interactive.



    Here's an example for Unix/Linux:



    svn list [TARGET] << EOF
    p
    EOF


    NOTE: The "p" above is for (p)ermanently.






    share|improve this answer

























    • Well, my version (1.6.6 (r40053)) unfortunately simply won't offer the p (permanently) option at all. And since this is on an ancient box which I can't update any longer ...

      – 0xC0000022L
      Mar 8 '17 at 14:45













    10












    10








    10







    Using --trust-server-cert will not permanently accept the SSL certificate. You can permanently accept the SSL certificate via the command line using Input Redirection and not using --non-interactive.



    Here's an example for Unix/Linux:



    svn list [TARGET] << EOF
    p
    EOF


    NOTE: The "p" above is for (p)ermanently.






    share|improve this answer















    Using --trust-server-cert will not permanently accept the SSL certificate. You can permanently accept the SSL certificate via the command line using Input Redirection and not using --non-interactive.



    Here's an example for Unix/Linux:



    svn list [TARGET] << EOF
    p
    EOF


    NOTE: The "p" above is for (p)ermanently.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 23 '13 at 18:34









    slm

    5,161124460




    5,161124460










    answered Apr 23 '13 at 18:08









    JesseJesse

    246312




    246312












    • Well, my version (1.6.6 (r40053)) unfortunately simply won't offer the p (permanently) option at all. And since this is on an ancient box which I can't update any longer ...

      – 0xC0000022L
      Mar 8 '17 at 14:45

















    • Well, my version (1.6.6 (r40053)) unfortunately simply won't offer the p (permanently) option at all. And since this is on an ancient box which I can't update any longer ...

      – 0xC0000022L
      Mar 8 '17 at 14:45
















    Well, my version (1.6.6 (r40053)) unfortunately simply won't offer the p (permanently) option at all. And since this is on an ancient box which I can't update any longer ...

    – 0xC0000022L
    Mar 8 '17 at 14:45





    Well, my version (1.6.6 (r40053)) unfortunately simply won't offer the p (permanently) option at all. And since this is on an ancient box which I can't update any longer ...

    – 0xC0000022L
    Mar 8 '17 at 14:45











    2














    My solution uses expect. It isn't secure but it will work when the other solutions won't.



    #!/usr/bin/expect -f

    set svn_username [lindex $argv 0]
    set svn_password [lindex $argv 1]
    set svn_url [lindex $argv 2]

    spawn svn --username=$svn_username --password=$svn_password list $svn_url
    expect "(R)eject, accept (t)emporarily or accept (p)ermanently? "
    send -- "pr"
    expect "Store password unencrypted (yes/no)? "
    send "nor"
    expect -re "root@.*:/#"





    share|improve this answer



























      2














      My solution uses expect. It isn't secure but it will work when the other solutions won't.



      #!/usr/bin/expect -f

      set svn_username [lindex $argv 0]
      set svn_password [lindex $argv 1]
      set svn_url [lindex $argv 2]

      spawn svn --username=$svn_username --password=$svn_password list $svn_url
      expect "(R)eject, accept (t)emporarily or accept (p)ermanently? "
      send -- "pr"
      expect "Store password unencrypted (yes/no)? "
      send "nor"
      expect -re "root@.*:/#"





      share|improve this answer

























        2












        2








        2







        My solution uses expect. It isn't secure but it will work when the other solutions won't.



        #!/usr/bin/expect -f

        set svn_username [lindex $argv 0]
        set svn_password [lindex $argv 1]
        set svn_url [lindex $argv 2]

        spawn svn --username=$svn_username --password=$svn_password list $svn_url
        expect "(R)eject, accept (t)emporarily or accept (p)ermanently? "
        send -- "pr"
        expect "Store password unencrypted (yes/no)? "
        send "nor"
        expect -re "root@.*:/#"





        share|improve this answer













        My solution uses expect. It isn't secure but it will work when the other solutions won't.



        #!/usr/bin/expect -f

        set svn_username [lindex $argv 0]
        set svn_password [lindex $argv 1]
        set svn_url [lindex $argv 2]

        spawn svn --username=$svn_username --password=$svn_password list $svn_url
        expect "(R)eject, accept (t)emporarily or accept (p)ermanently? "
        send -- "pr"
        expect "Store password unencrypted (yes/no)? "
        send "nor"
        expect -re "root@.*:/#"






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 25 '14 at 14:04









        Matt FriedmanMatt Friedman

        1211




        1211





















            0














            You should be able to download the certificate and then place it in the appropriate directory. Or you can download the CA certificate and then set the configuration option ssl-authority-files to trust that CA.



            See the SSL Certificate Management section in the book.






            share|improve this answer























            • I'm in a very strange situation here, see serverfault.com/questions/7648/…, so I want to be able to pull it off in one command.

              – James McMahon
              Jul 8 '09 at 21:07















            0














            You should be able to download the certificate and then place it in the appropriate directory. Or you can download the CA certificate and then set the configuration option ssl-authority-files to trust that CA.



            See the SSL Certificate Management section in the book.






            share|improve this answer























            • I'm in a very strange situation here, see serverfault.com/questions/7648/…, so I want to be able to pull it off in one command.

              – James McMahon
              Jul 8 '09 at 21:07













            0












            0








            0







            You should be able to download the certificate and then place it in the appropriate directory. Or you can download the CA certificate and then set the configuration option ssl-authority-files to trust that CA.



            See the SSL Certificate Management section in the book.






            share|improve this answer













            You should be able to download the certificate and then place it in the appropriate directory. Or you can download the CA certificate and then set the configuration option ssl-authority-files to trust that CA.



            See the SSL Certificate Management section in the book.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 8 '09 at 21:04









            ZoredacheZoredache

            113k31233380




            113k31233380












            • I'm in a very strange situation here, see serverfault.com/questions/7648/…, so I want to be able to pull it off in one command.

              – James McMahon
              Jul 8 '09 at 21:07

















            • I'm in a very strange situation here, see serverfault.com/questions/7648/…, so I want to be able to pull it off in one command.

              – James McMahon
              Jul 8 '09 at 21:07
















            I'm in a very strange situation here, see serverfault.com/questions/7648/…, so I want to be able to pull it off in one command.

            – James McMahon
            Jul 8 '09 at 21:07





            I'm in a very strange situation here, see serverfault.com/questions/7648/…, so I want to be able to pull it off in one command.

            – James McMahon
            Jul 8 '09 at 21:07

















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f37929%2fhow-do-you-accept-an-ssl-certificate-through-the-svn-command-line%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company