This file is indexed.

/usr/share/doc/python3-certbot/html/using.html is in python-certbot-doc 0.23.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>User Guide &mdash; Certbot 0.23.0 documentation</title>
  

  
  
  
  

  

  
  
    

  

  
  
    <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  

  

  
        <link rel="index" title="Index"
              href="genindex.html"/>
        <link rel="search" title="Search" href="search.html"/>
    <link rel="top" title="Certbot 0.23.0 documentation" href="index.html"/>
        <link rel="next" title="Developer Guide" href="contributing.html"/>
        <link rel="prev" title="Get Certbot" href="install.html"/> 

  
  <script src="_static/js/modernizr.min.js"></script>

</head>

<body class="wy-body-for-nav" role="document">

   
  <div class="wy-grid-for-nav">

    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search">
          

          
            <a href="index.html" class="icon icon-home"> Certbot
          

          
          </a>

          
            
            
              <div class="version">
                0.23
              </div>
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
<li class="toctree-l1"><a class="reference internal" href="what.html">What is a Certificate?</a></li>
<li class="toctree-l1"><a class="reference internal" href="install.html">Get Certbot</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">User Guide</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#certbot-commands">Certbot Commands</a></li>
<li class="toctree-l2"><a class="reference internal" href="#getting-certificates-and-choosing-plugins">Getting certificates (and choosing plugins)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#apache">Apache</a></li>
<li class="toctree-l3"><a class="reference internal" href="#webroot">Webroot</a></li>
<li class="toctree-l3"><a class="reference internal" href="#nginx">Nginx</a></li>
<li class="toctree-l3"><a class="reference internal" href="#standalone">Standalone</a></li>
<li class="toctree-l3"><a class="reference internal" href="#dns-plugins">DNS Plugins</a></li>
<li class="toctree-l3"><a class="reference internal" href="#manual">Manual</a></li>
<li class="toctree-l3"><a class="reference internal" href="#combining-plugins">Combining plugins</a></li>
<li class="toctree-l3"><a class="reference internal" href="#third-party-plugins">Third-party plugins</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#managing-certificates">Managing certificates</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#re-creating-and-updating-existing-certificates">Re-creating and Updating Existing Certificates</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#changing-a-certificate-s-domains">Changing a Certificate’s Domains</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#revoking-certificates">Revoking certificates</a></li>
<li class="toctree-l3"><a class="reference internal" href="#renewing-certificates">Renewing certificates</a></li>
<li class="toctree-l3"><a class="reference internal" href="#modifying-the-renewal-configuration-file">Modifying the Renewal Configuration File</a></li>
<li class="toctree-l3"><a class="reference internal" href="#automated-renewals">Automated Renewals</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#where-are-my-certificates">Where are my certificates?</a></li>
<li class="toctree-l2"><a class="reference internal" href="#pre-and-post-validation-hooks">Pre and Post Validation Hooks</a></li>
<li class="toctree-l2"><a class="reference internal" href="#changing-the-acme-server">Changing the ACME Server</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id6">Lock Files</a></li>
<li class="toctree-l2"><a class="reference internal" href="#configuration-file">Configuration file</a></li>
<li class="toctree-l2"><a class="reference internal" href="#log-rotation">Log Rotation</a></li>
<li class="toctree-l2"><a class="reference internal" href="#certbot-command-line-options">Certbot command-line options</a></li>
<li class="toctree-l2"><a class="reference internal" href="#getting-help">Getting help</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="contributing.html">Developer Guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="packaging.html">Packaging Guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="resources.html">Resources</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="api.html">API Documentation</a></li>
</ul>

            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="index.html">Certbot</a>
        
      </nav>


      
      <div class="wy-nav-content">
        <div class="rst-content">
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="index.html">Docs</a> &raquo;</li>
        
      <li>User Guide</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
            <a href="_sources/using.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="user-guide">
<h1>User Guide<a class="headerlink" href="#user-guide" title="Permalink to this headline"></a></h1>
<div class="contents local topic" id="table-of-contents">
<p class="topic-title first">Table of Contents</p>
<ul class="simple">
<li><a class="reference internal" href="#certbot-commands" id="id9">Certbot Commands</a></li>
<li><a class="reference internal" href="#getting-certificates-and-choosing-plugins" id="id10">Getting certificates (and choosing plugins)</a><ul>
<li><a class="reference internal" href="#apache" id="id11">Apache</a></li>
<li><a class="reference internal" href="#webroot" id="id12">Webroot</a></li>
<li><a class="reference internal" href="#nginx" id="id13">Nginx</a></li>
<li><a class="reference internal" href="#standalone" id="id14">Standalone</a></li>
<li><a class="reference internal" href="#dns-plugins" id="id15">DNS Plugins</a></li>
<li><a class="reference internal" href="#manual" id="id16">Manual</a></li>
<li><a class="reference internal" href="#combining-plugins" id="id17">Combining plugins</a></li>
<li><a class="reference internal" href="#third-party-plugins" id="id18">Third-party plugins</a></li>
</ul>
</li>
<li><a class="reference internal" href="#managing-certificates" id="id19">Managing certificates</a><ul>
<li><a class="reference internal" href="#re-creating-and-updating-existing-certificates" id="id20">Re-creating and Updating Existing Certificates</a></li>
</ul>
</li>
<li><a class="reference internal" href="#changing-a-certificate-s-domains" id="id21">Changing a Certificate’s Domains</a><ul>
<li><a class="reference internal" href="#revoking-certificates" id="id22">Revoking certificates</a></li>
<li><a class="reference internal" href="#renewing-certificates" id="id23">Renewing certificates</a></li>
<li><a class="reference internal" href="#modifying-the-renewal-configuration-file" id="id24">Modifying the Renewal Configuration File</a></li>
<li><a class="reference internal" href="#automated-renewals" id="id25">Automated Renewals</a></li>
</ul>
</li>
<li><a class="reference internal" href="#where-are-my-certificates" id="id26">Where are my certificates?</a></li>
<li><a class="reference internal" href="#pre-and-post-validation-hooks" id="id27">Pre and Post Validation Hooks</a></li>
<li><a class="reference internal" href="#changing-the-acme-server" id="id28">Changing the ACME Server</a></li>
<li><a class="reference internal" href="#id6" id="id29">Lock Files</a></li>
<li><a class="reference internal" href="#configuration-file" id="id30">Configuration file</a></li>
<li><a class="reference internal" href="#log-rotation" id="id31">Log Rotation</a></li>
<li><a class="reference internal" href="#certbot-command-line-options" id="id32">Certbot command-line options</a></li>
<li><a class="reference internal" href="#getting-help" id="id33">Getting help</a></li>
</ul>
</div>
<div class="section" id="certbot-commands">
<h2><a class="toc-backref" href="#id9">Certbot Commands</a><a class="headerlink" href="#certbot-commands" title="Permalink to this headline"></a></h2>
<p>Certbot uses a number of different commands (also referred
to as “subcommands”) to request specific actions such as
obtaining, renewing, or revoking certificates. The most important
and commonly-used commands will be discussed throughout this
document; an exhaustive list also appears near the end of the document.</p>
<p>The <code class="docutils literal"><span class="pre">certbot</span></code> script on your web server might be named <code class="docutils literal"><span class="pre">letsencrypt</span></code> if your system uses an older package, or <code class="docutils literal"><span class="pre">certbot-auto</span></code> if you used an alternate installation method. Throughout the docs, whenever you see <code class="docutils literal"><span class="pre">certbot</span></code>, swap in the correct name as needed.</p>
</div>
<div class="section" id="getting-certificates-and-choosing-plugins">
<span id="plugins"></span><h2><a class="toc-backref" href="#id10">Getting certificates (and choosing plugins)</a><a class="headerlink" href="#getting-certificates-and-choosing-plugins" title="Permalink to this headline"></a></h2>
<p>The Certbot client supports two types of plugins for
obtaining and installing certificates: authenticators and installers.</p>
<p>Authenticators are plugins used with the <code class="docutils literal"><span class="pre">certonly</span></code> command to obtain a certificate.
The authenticator validates that you
control the domain(s) you are requesting a certificate for, obtains a certificate for the specified
domain(s), and places the certificate in the <code class="docutils literal"><span class="pre">/etc/letsencrypt</span></code> directory on your
machine. The authenticator does not install the certificate (it does not edit any of your server’s configuration files to serve the
obtained certificate). If you specify multiple domains to authenticate, they will
all be listed in a single certificate. To obtain multiple separate certificates
you will need to run Certbot multiple times.</p>
<p>Installers are Plugins used with the <code class="docutils literal"><span class="pre">install</span></code> command to install a certificate.
These plugins can modify your webserver’s configuration to
serve your website over HTTPS using certificates obtained by certbot.</p>
<p>Plugins that do both can be used with the <code class="docutils literal"><span class="pre">certbot</span> <span class="pre">run</span></code> command, which is the default
when no command is specified. The <code class="docutils literal"><span class="pre">run</span></code> subcommand can also be used to specify
a <a class="reference internal" href="#combination">combination</a> of distinct authenticator and installer plugins.</p>
<table border="1" class="docutils">
<colgroup>
<col width="10%" />
<col width="4%" />
<col width="4%" />
<col width="57%" />
<col width="26%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Plugin</th>
<th class="head">Auth</th>
<th class="head">Inst</th>
<th class="head">Notes</th>
<th class="head">Challenge types (and port)</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><a class="reference internal" href="#apache">apache</a></td>
<td>Y</td>
<td>Y</td>
<td><div class="first last line-block">
<div class="line">Automates obtaining and installing a certificate with Apache</div>
<div class="line">2.4 on OSes with <code class="docutils literal"><span class="pre">libaugeas0</span></code> 1.0+.</div>
</div>
</td>
<td><a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.3">tls-sni-01</a> (443)</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#webroot">webroot</a></td>
<td>Y</td>
<td>N</td>
<td><div class="first last line-block">
<div class="line">Obtains a certificate by writing to the webroot directory of</div>
<div class="line">an already running webserver.</div>
</div>
</td>
<td><a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.2">http-01</a> (80)</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#nginx">nginx</a></td>
<td>Y</td>
<td>Y</td>
<td><div class="first last line-block">
<div class="line">Automates obtaining and installing a certificate with Nginx.</div>
<div class="line">Shipped with Certbot 0.9.0.</div>
</div>
</td>
<td><a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.3">tls-sni-01</a> (443)</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#standalone">standalone</a></td>
<td>Y</td>
<td>N</td>
<td><div class="first last line-block">
<div class="line">Uses a “standalone” webserver to obtain a certificate.</div>
<div class="line">Requires port 80 or 443 to be available. This is useful on</div>
<div class="line">systems with no webserver, or when direct integration with</div>
<div class="line">the local webserver is not supported or not desired.</div>
</div>
</td>
<td><a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.2">http-01</a> (80) or
<a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.3">tls-sni-01</a> (443)</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#dns-plugins"><span class="std std-ref">DNS plugins</span></a></td>
<td>Y</td>
<td>N</td>
<td><div class="first last line-block">
<div class="line">This category of plugins automates obtaining a certificate by</div>
<div class="line">modifying DNS records to prove you have control over a</div>
<div class="line">domain. Doing domain validation in this way is</div>
<div class="line">the only way to obtain wildcard certificates from Let’s</div>
<div class="line">Encrypt.</div>
</div>
</td>
<td><a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.4">dns-01</a> (53)</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#manual">manual</a></td>
<td>Y</td>
<td>N</td>
<td><div class="first last line-block">
<div class="line">Helps you obtain a certificate by giving you instructions to</div>
<div class="line">perform domain validation yourself. Additionally allows you</div>
<div class="line">to specify scripts to automate the validation task in a</div>
<div class="line">customized way.</div>
</div>
</td>
<td><a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.2">http-01</a> (80),
<a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.4">dns-01</a> (53) or
<a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.3">tls-sni-01</a> (443)</td>
</tr>
</tbody>
</table>
<p>Under the hood, plugins use one of several ACME protocol <a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7">challenges</a> to
prove you control a domain. The options are <a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.2">http-01</a> (which uses port 80),
<a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.3">tls-sni-01</a> (port 443) and <a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.4">dns-01</a> (requiring configuration of a DNS server on
port 53, though that’s often not the same machine as your webserver). A few
plugins support more than one challenge type, in which case you can choose one
with <code class="docutils literal"><span class="pre">--preferred-challenges</span></code>.</p>
<p>There are also many <a class="reference internal" href="#third-party-plugins">third-party-plugins</a> available. Below we describe in more detail
the circumstances in which each plugin can be used, and how to use it.</p>
<div class="section" id="apache">
<h3><a class="toc-backref" href="#id11">Apache</a><a class="headerlink" href="#apache" title="Permalink to this headline"></a></h3>
<p>The Apache plugin currently requires an OS with augeas version 1.0; currently <a class="reference external" href="https://github.com/certbot/certbot/blob/master/certbot-apache/certbot_apache/entrypoint.py">it
supports</a>
modern OSes based on Debian, Fedora, SUSE, Gentoo and Darwin.
This automates both obtaining <em>and</em> installing certificates on an Apache
webserver. To specify this plugin on the command line, simply include
<code class="docutils literal"><span class="pre">--apache</span></code>.</p>
</div>
<div class="section" id="webroot">
<h3><a class="toc-backref" href="#id12">Webroot</a><a class="headerlink" href="#webroot" title="Permalink to this headline"></a></h3>
<p>If you’re running a local webserver for which you have the ability
to modify the content being served, and you’d prefer not to stop the
webserver during the certificate issuance process, you can use the webroot
plugin to obtain a certificate by including <code class="docutils literal"><span class="pre">certonly</span></code> and <code class="docutils literal"><span class="pre">--webroot</span></code> on
the command line. In addition, you’ll need to specify <code class="docutils literal"><span class="pre">--webroot-path</span></code>
or <code class="docutils literal"><span class="pre">-w</span></code> with the top-level directory (“web root”) containing the files
served by your webserver. For example, <code class="docutils literal"><span class="pre">--webroot-path</span> <span class="pre">/var/www/html</span></code>
or <code class="docutils literal"><span class="pre">--webroot-path</span> <span class="pre">/usr/share/nginx/html</span></code> are two common webroot paths.</p>
<p>If you’re getting a certificate for many domains at once, the plugin
needs to know where each domain’s files are served from, which could
potentially be a separate directory for each domain. When requesting a
certificate for multiple domains, each domain will use the most recently
specified <code class="docutils literal"><span class="pre">--webroot-path</span></code>. So, for instance,</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">certbot</span> <span class="n">certonly</span> <span class="o">--</span><span class="n">webroot</span> <span class="o">-</span><span class="n">w</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">www</span><span class="o">/</span><span class="n">example</span> <span class="o">-</span><span class="n">d</span> <span class="n">www</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span> <span class="o">-</span><span class="n">d</span> <span class="n">example</span><span class="o">.</span><span class="n">com</span> <span class="o">-</span><span class="n">w</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">www</span><span class="o">/</span><span class="n">other</span> <span class="o">-</span><span class="n">d</span> <span class="n">other</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">net</span> <span class="o">-</span><span class="n">d</span> <span class="n">another</span><span class="o">.</span><span class="n">other</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">net</span>
</pre></div>
</div>
<p>would obtain a single certificate for all of those names, using the
<code class="docutils literal"><span class="pre">/var/www/example</span></code> webroot directory for the first two, and
<code class="docutils literal"><span class="pre">/var/www/other</span></code> for the second two.</p>
<p>The webroot plugin works by creating a temporary file for each of your requested
domains in <code class="docutils literal"><span class="pre">${webroot-path}/.well-known/acme-challenge</span></code>. Then the Let’s Encrypt
validation server makes HTTP requests to validate that the DNS for each
requested domain resolves to the server running certbot. An example request
made to your web server would look like:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="mf">66.133</span><span class="o">.</span><span class="mf">109.36</span> <span class="o">-</span> <span class="o">-</span> <span class="p">[</span><span class="mi">05</span><span class="o">/</span><span class="n">Jan</span><span class="o">/</span><span class="mi">2016</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">11</span><span class="p">:</span><span class="mi">24</span> <span class="o">-</span><span class="mi">0500</span><span class="p">]</span> <span class="s2">&quot;GET /.well-known/acme-challenge/HGr8U1IeTW4kY_Z6UIyaakzOkyQgPr_7ArlLgtZE8SX HTTP/1.1&quot;</span> <span class="mi">200</span> <span class="mi">87</span> <span class="s2">&quot;-&quot;</span> <span class="s2">&quot;Mozilla/5.0 (compatible; Let&#39;s Encrypt validation server; +https://www.letsencrypt.org)&quot;</span>
</pre></div>
</div>
<p>Note that to use the webroot plugin, your server must be configured to serve
files from hidden directories. If <code class="docutils literal"><span class="pre">/.well-known</span></code> is treated specially by
your webserver configuration, you might need to modify the configuration
to ensure that files inside <code class="docutils literal"><span class="pre">/.well-known/acme-challenge</span></code> are served by
the webserver.</p>
</div>
<div class="section" id="nginx">
<h3><a class="toc-backref" href="#id13">Nginx</a><a class="headerlink" href="#nginx" title="Permalink to this headline"></a></h3>
<p>The Nginx plugin has been distributed with Certbot since version 0.9.0 and should
work for most configurations. We recommend backing up Nginx
configurations before using it (though you can also revert changes to
configurations with <code class="docutils literal"><span class="pre">certbot</span> <span class="pre">--nginx</span> <span class="pre">rollback</span></code>). You can use it by providing
the <code class="docutils literal"><span class="pre">--nginx</span></code> flag on the commandline.</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">certbot</span> <span class="o">--</span><span class="n">nginx</span>
</pre></div>
</div>
</div>
<div class="section" id="standalone">
<span id="id1"></span><h3><a class="toc-backref" href="#id14">Standalone</a><a class="headerlink" href="#standalone" title="Permalink to this headline"></a></h3>
<p>Use standalone mode to obtain a certificate if you don’t want to use (or don’t currently have)
existing server software. The standalone plugin does not rely on any other server
software running on the machine where you obtain the certificate.</p>
<p>To obtain a certificate using a “standalone” webserver, you can use the
standalone plugin by including <code class="docutils literal"><span class="pre">certonly</span></code> and <code class="docutils literal"><span class="pre">--standalone</span></code>
on the command line. This plugin needs to bind to port 80 or 443 in
order to perform domain validation, so you may need to stop your
existing webserver. To control which port the plugin uses, include
one of the options shown below on the command line.</p>
<blockquote>
<div><ul class="simple">
<li><code class="docutils literal"><span class="pre">--preferred-challenges</span> <span class="pre">http</span></code> to use port 80</li>
<li><code class="docutils literal"><span class="pre">--preferred-challenges</span> <span class="pre">tls-sni</span></code> to use port 443</li>
</ul>
</div></blockquote>
<p>It must still be possible for your machine to accept inbound connections from
the Internet on the specified port using each requested domain name.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">The <code class="docutils literal"><span class="pre">--standalone-supported-challenges</span></code> option has been
deprecated since <code class="docutils literal"><span class="pre">certbot</span></code> version 0.9.0.</p>
</div>
</div>
<div class="section" id="dns-plugins">
<span id="id2"></span><h3><a class="toc-backref" href="#id15">DNS Plugins</a><a class="headerlink" href="#dns-plugins" title="Permalink to this headline"></a></h3>
<p>If you’d like to obtain a wildcard certificate from Let’s Encrypt or run
<code class="docutils literal"><span class="pre">certbot</span></code> on a machine other than your target webserver, you can use one of
Certbot’s DNS plugins.</p>
<p>These plugins are still in the process of being packaged
by many distributions and cannot currently be installed with <code class="docutils literal"><span class="pre">certbot-auto</span></code>.
If, however, you are comfortable installing the certificates yourself,
you can run these plugins with <a class="reference internal" href="install.html#docker-user"><span class="std std-ref">Docker</span></a>.</p>
<p>Once installed, you can find documentation on how to use each plugin at:</p>
<ul class="simple">
<li><a class="reference external" href="https://certbot-dns-cloudflare.readthedocs.io">certbot-dns-cloudflare</a></li>
<li><a class="reference external" href="https://certbot-dns-cloudxns.readthedocs.io">certbot-dns-cloudxns</a></li>
<li><a class="reference external" href="https://certbot-dns-digitalocean.readthedocs.io">certbot-dns-digitalocean</a></li>
<li><a class="reference external" href="https://certbot-dns-dnsimple.readthedocs.io">certbot-dns-dnsimple</a></li>
<li><a class="reference external" href="https://certbot-dns-dnsmadeeasy.readthedocs.io">certbot-dns-dnsmadeeasy</a></li>
<li><a class="reference external" href="https://certbot-dns-google.readthedocs.io">certbot-dns-google</a></li>
<li><a class="reference external" href="https://certbot-dns-luadns.readthedocs.io">certbot-dns-luadns</a></li>
<li><a class="reference external" href="https://certbot-dns-nsone.readthedocs.io">certbot-dns-nsone</a></li>
<li><a class="reference external" href="https://certbot-dns-rfc2136.readthedocs.io">certbot-dns-rfc2136</a></li>
<li><a class="reference external" href="https://certbot-dns-route53.readthedocs.io">certbot-dns-route53</a></li>
</ul>
</div>
<div class="section" id="manual">
<h3><a class="toc-backref" href="#id16">Manual</a><a class="headerlink" href="#manual" title="Permalink to this headline"></a></h3>
<p>If you’d like to obtain a certificate running <code class="docutils literal"><span class="pre">certbot</span></code> on a machine
other than your target webserver or perform the steps for domain
validation yourself, you can use the manual plugin. While hidden from
the UI, you can use the plugin to obtain a certificate by specifying
<code class="docutils literal"><span class="pre">certonly</span></code> and <code class="docutils literal"><span class="pre">--manual</span></code> on the command line. This requires you
to copy and paste commands into another terminal session, which may
be on a different computer.</p>
<p>The manual plugin can use either the <code class="docutils literal"><span class="pre">http</span></code>, <code class="docutils literal"><span class="pre">dns</span></code> or the
<code class="docutils literal"><span class="pre">tls-sni</span></code> challenge. You can use the <code class="docutils literal"><span class="pre">--preferred-challenges</span></code> option
to choose the challenge of your preference.</p>
<p>The <code class="docutils literal"><span class="pre">http</span></code> challenge will ask you to place a file with a specific name and
specific content in the <code class="docutils literal"><span class="pre">/.well-known/acme-challenge/</span></code> directory directly
in the top-level directory (“web root”) containing the files served by your
webserver. In essence it’s the same as the <a class="reference internal" href="#webroot">webroot</a> plugin, but not automated.</p>
<p>When using the <code class="docutils literal"><span class="pre">dns</span></code> challenge, <code class="docutils literal"><span class="pre">certbot</span></code> will ask you to place a TXT DNS
record with specific contents under the domain name consisting of the hostname
for which you want a certificate issued, prepended by <code class="docutils literal"><span class="pre">_acme-challenge</span></code>.</p>
<p>For example, for the domain <code class="docutils literal"><span class="pre">example.com</span></code>, a zone file entry would look like:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">_acme</span><span class="o">-</span><span class="n">challenge</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="o">.</span> <span class="mi">300</span> <span class="n">IN</span> <span class="n">TXT</span> <span class="s2">&quot;gfj9Xq...Rg85nM&quot;</span>
</pre></div>
</div>
<p>When using the <code class="docutils literal"><span class="pre">tls-sni</span></code> challenge, <code class="docutils literal"><span class="pre">certbot</span></code> will prepare a self-signed
SSL certificate for you with the challenge validation appropriately
encoded into a subjectAlternatNames entry. You will need to configure
your SSL server to present this challenge SSL certificate to the ACME
server using SNI.</p>
<p>Additionally you can specify scripts to prepare for validation and
perform the authentication procedure and/or clean up after it by using
the <code class="docutils literal"><span class="pre">--manual-auth-hook</span></code> and <code class="docutils literal"><span class="pre">--manual-cleanup-hook</span></code> flags. This is
described in more depth in the <a class="reference internal" href="#hooks">hooks</a> section.</p>
</div>
<div class="section" id="combining-plugins">
<span id="combination"></span><h3><a class="toc-backref" href="#id17">Combining plugins</a><a class="headerlink" href="#combining-plugins" title="Permalink to this headline"></a></h3>
<p>Sometimes you may want to specify a combination of distinct authenticator and
installer plugins. To do so, specify the authenticator plugin with
<code class="docutils literal"><span class="pre">--authenticator</span></code> or <code class="docutils literal"><span class="pre">-a</span></code> and the installer plugin with <code class="docutils literal"><span class="pre">--installer</span></code> or
<code class="docutils literal"><span class="pre">-i</span></code>.</p>
<p>For instance, you may want to create a certificate using the <a class="reference internal" href="#webroot">webroot</a> plugin
for authentication and the <a class="reference internal" href="#apache">apache</a> plugin for installation, perhaps because you
use a proxy or CDN for SSL and only want to secure the connection between them
and your origin server, which cannot use the <a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.3">tls-sni-01</a> challenge due to the
intermediate proxy.</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">certbot</span> <span class="n">run</span> <span class="o">-</span><span class="n">a</span> <span class="n">webroot</span> <span class="o">-</span><span class="n">i</span> <span class="n">apache</span> <span class="o">-</span><span class="n">w</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">www</span><span class="o">/</span><span class="n">html</span> <span class="o">-</span><span class="n">d</span> <span class="n">example</span><span class="o">.</span><span class="n">com</span>
</pre></div>
</div>
</div>
<div class="section" id="third-party-plugins">
<span id="id3"></span><h3><a class="toc-backref" href="#id18">Third-party plugins</a><a class="headerlink" href="#third-party-plugins" title="Permalink to this headline"></a></h3>
<p>There are also a number of third-party plugins for the client, provided by
other developers. Many are beta/experimental, but some are already in
widespread use:</p>
<table border="1" class="docutils">
<colgroup>
<col width="13%" />
<col width="5%" />
<col width="5%" />
<col width="77%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Plugin</th>
<th class="head">Auth</th>
<th class="head">Inst</th>
<th class="head">Notes</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><a class="reference external" href="https://github.com/plesk/letsencrypt-plesk">plesk</a></td>
<td>Y</td>
<td>Y</td>
<td>Integration with the Plesk web hosting tool</td>
</tr>
<tr class="row-odd"><td><a class="reference external" href="https://github.com/greenhost/certbot-haproxy">haproxy</a></td>
<td>Y</td>
<td>Y</td>
<td>Integration with the HAProxy load balancer</td>
</tr>
<tr class="row-even"><td><a class="reference external" href="https://github.com/dlapiduz/letsencrypt-s3front">s3front</a></td>
<td>Y</td>
<td>Y</td>
<td>Integration with Amazon CloudFront distribution of S3 buckets</td>
</tr>
<tr class="row-odd"><td><a class="reference external" href="https://github.com/Gandi/letsencrypt-gandi">gandi</a></td>
<td>Y</td>
<td>Y</td>
<td>Integration with Gandi’s hosting products and API</td>
</tr>
<tr class="row-even"><td><a class="reference external" href="http://git.sesse.net/?p=letsencrypt-varnish-plugin">varnish</a></td>
<td>Y</td>
<td>N</td>
<td>Obtain certificates via a Varnish server</td>
</tr>
<tr class="row-odd"><td><a class="reference external" href="https://github.com/marcan/letsencrypt-external">external</a></td>
<td>Y</td>
<td>N</td>
<td>A plugin for convenient scripting (See also ticket <a class="reference external" href="https://github.com/certbot/certbot/issues/2782">2782</a>)</td>
</tr>
<tr class="row-even"><td><a class="reference external" href="https://github.com/e00E/lets-encrypt-icecast">icecast</a></td>
<td>N</td>
<td>Y</td>
<td>Deploy certificates to Icecast 2 streaming media servers</td>
</tr>
<tr class="row-odd"><td><a class="reference external" href="https://github.com/kharkevich/letsencrypt-pritunl">pritunl</a></td>
<td>N</td>
<td>Y</td>
<td>Install certificates in pritunl distributed OpenVPN servers</td>
</tr>
<tr class="row-even"><td><a class="reference external" href="https://github.com/kharkevich/letsencrypt-proxmox">proxmox</a></td>
<td>N</td>
<td>Y</td>
<td>Install certificates in Proxmox Virtualization servers</td>
</tr>
<tr class="row-odd"><td><a class="reference external" href="https://github.com/EFForg/starttls-everywhere">postfix</a></td>
<td>N</td>
<td>Y</td>
<td>STARTTLS Everywhere is becoming a Certbot Postfix/Exim plugin</td>
</tr>
<tr class="row-even"><td><a class="reference external" href="https://github.com/gboudreau/certbot-heroku">heroku</a></td>
<td>Y</td>
<td>Y</td>
<td>Integration with Heroku SSL</td>
</tr>
</tbody>
</table>
<p>If you’re interested, you can also <a class="reference internal" href="contributing.html#dev-plugin"><span class="std std-ref">write your own plugin</span></a>.</p>
</div>
</div>
<div class="section" id="managing-certificates">
<span id="managing-certs"></span><h2><a class="toc-backref" href="#id19">Managing certificates</a><a class="headerlink" href="#managing-certificates" title="Permalink to this headline"></a></h2>
<p>To view a list of the certificates Certbot knows about, run
the <code class="docutils literal"><span class="pre">certificates</span></code> subcommand:</p>
<p><code class="docutils literal"><span class="pre">certbot</span> <span class="pre">certificates</span></code></p>
<p>This returns information in the following format:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">Found</span> <span class="n">the</span> <span class="n">following</span> <span class="n">certs</span><span class="p">:</span>
  <span class="n">Certificate</span> <span class="n">Name</span><span class="p">:</span> <span class="n">example</span><span class="o">.</span><span class="n">com</span>
    <span class="n">Domains</span><span class="p">:</span> <span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="p">,</span> <span class="n">www</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span>
    <span class="n">Expiry</span> <span class="n">Date</span><span class="p">:</span> <span class="mi">2017</span><span class="o">-</span><span class="mi">02</span><span class="o">-</span><span class="mi">19</span> <span class="mi">19</span><span class="p">:</span><span class="mi">53</span><span class="p">:</span><span class="mi">00</span><span class="o">+</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span> <span class="p">(</span><span class="n">VALID</span><span class="p">:</span> <span class="mi">30</span> <span class="n">days</span><span class="p">)</span>
    <span class="n">Certificate</span> <span class="n">Path</span><span class="p">:</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">letsencrypt</span><span class="o">/</span><span class="n">live</span><span class="o">/</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">fullchain</span><span class="o">.</span><span class="n">pem</span>
    <span class="n">Private</span> <span class="n">Key</span> <span class="n">Path</span><span class="p">:</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">letsencrypt</span><span class="o">/</span><span class="n">live</span><span class="o">/</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">privkey</span><span class="o">.</span><span class="n">pem</span>
</pre></div>
</div>
<p><code class="docutils literal"><span class="pre">Certificate</span> <span class="pre">Name</span></code> shows the name of the certificate. Pass this name
using the <code class="docutils literal"><span class="pre">--cert-name</span></code> flag to specify a particular certificate for the <code class="docutils literal"><span class="pre">run</span></code>,
<code class="docutils literal"><span class="pre">certonly</span></code>, <code class="docutils literal"><span class="pre">certificates</span></code>, <code class="docutils literal"><span class="pre">renew</span></code>, and <code class="docutils literal"><span class="pre">delete</span></code> commands. Example:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">certbot</span> <span class="n">certonly</span> <span class="o">--</span><span class="n">cert</span><span class="o">-</span><span class="n">name</span> <span class="n">example</span><span class="o">.</span><span class="n">com</span>
</pre></div>
</div>
<div class="section" id="re-creating-and-updating-existing-certificates">
<span id="updating-certs"></span><h3><a class="toc-backref" href="#id20">Re-creating and Updating Existing Certificates</a><a class="headerlink" href="#re-creating-and-updating-existing-certificates" title="Permalink to this headline"></a></h3>
<p>You can use <code class="docutils literal"><span class="pre">certonly</span></code> or <code class="docutils literal"><span class="pre">run</span></code> subcommands to request
the creation of a single new certificate even if you already have an
existing certificate with some of the same domain names.</p>
<p>If a certificate is requested with <code class="docutils literal"><span class="pre">run</span></code> or <code class="docutils literal"><span class="pre">certonly</span></code> specifying a
certificate name that already exists, Certbot updates
the existing certificate. Otherwise a new certificate
is created and assigned the specified name.</p>
<p>The <code class="docutils literal"><span class="pre">--force-renewal</span></code>, <code class="docutils literal"><span class="pre">--duplicate</span></code>, and <code class="docutils literal"><span class="pre">--expand</span></code> options
control Certbot’s behavior when re-creating
a certificate with the same name as an existing certificate.
If you don’t specify a requested behavior, Certbot may ask you what you intended.</p>
<p><code class="docutils literal"><span class="pre">--force-renewal</span></code> tells Certbot to request a new certificate
with the same domains as an existing certificate. Each domain
must be explicitly specified via <code class="docutils literal"><span class="pre">-d</span></code>. If successful, this certificate
is saved alongside the earlier one and symbolic links (the “<code class="docutils literal"><span class="pre">live</span></code>”
reference) will be updated to point to the new certificate. This is a
valid method of renewing a specific individual
certificate.</p>
<p><code class="docutils literal"><span class="pre">--duplicate</span></code> tells Certbot to create a separate, unrelated certificate
with the same domains as an existing certificate. This certificate is
saved completely separately from the prior one. Most users will not
need to issue this command in normal circumstances.</p>
<p><code class="docutils literal"><span class="pre">--expand</span></code> tells Certbot to update an existing certificate with a new
certificate that contains all of the old domains and one or more additional
new domains. With the <code class="docutils literal"><span class="pre">--expand</span></code> option, use the <code class="docutils literal"><span class="pre">-d</span></code> option to specify
all existing domains and one or more new domains.</p>
<p>Example:</p>
<div class="highlight-none"><div class="highlight"><pre><span></span>certbot --expand -d existing.com,example.com,newdomain.com
</pre></div>
</div>
<p>If you prefer, you can specify the domains individually like this:</p>
<div class="highlight-none"><div class="highlight"><pre><span></span>certbot --expand -d existing.com -d example.com -d newdomain.com
</pre></div>
</div>
<p>Consider using <code class="docutils literal"><span class="pre">--cert-name</span></code> instead of <code class="docutils literal"><span class="pre">--expand</span></code>, as it gives more control
over which certificate is modified and it lets you remove domains as well as adding them.</p>
<p><code class="docutils literal"><span class="pre">--allow-subset-of-names</span></code> tells Certbot to continue with certificate generation if
only some of the specified domain authorizations can be obtained. This may
be useful if some domains specified in a certificate no longer point at this
system.</p>
<p>Whenever you obtain a new certificate in any of these ways, the new
certificate exists alongside any previously obtained certificates, whether
or not the previous certificates have expired. The generation of a new
certificate counts against several rate limits that are intended to prevent
abuse of the ACME protocol, as described
<a class="reference external" href="https://community.letsencrypt.org/t/rate-limits-for-lets-encrypt/6769">here</a>.</p>
</div>
</div>
<div class="section" id="changing-a-certificate-s-domains">
<span id="changing"></span><h2><a class="toc-backref" href="#id21">Changing a Certificate’s Domains</a><a class="headerlink" href="#changing-a-certificate-s-domains" title="Permalink to this headline"></a></h2>
<p>The <code class="docutils literal"><span class="pre">--cert-name</span></code> flag can also be used to modify the domains a certificate contains,
by specifying new domains using the <code class="docutils literal"><span class="pre">-d</span></code> or <code class="docutils literal"><span class="pre">--domains</span></code> flag. If certificate <code class="docutils literal"><span class="pre">example.com</span></code>
previously contained <code class="docutils literal"><span class="pre">example.com</span></code> and <code class="docutils literal"><span class="pre">www.example.com</span></code>, it can be modified to only
contain <code class="docutils literal"><span class="pre">example.com</span></code> by specifying only <code class="docutils literal"><span class="pre">example.com</span></code> with the <code class="docutils literal"><span class="pre">-d</span></code> or <code class="docutils literal"><span class="pre">--domains</span></code> flag. Example:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">certbot</span> <span class="n">certonly</span> <span class="o">--</span><span class="n">cert</span><span class="o">-</span><span class="n">name</span> <span class="n">example</span><span class="o">.</span><span class="n">com</span> <span class="o">-</span><span class="n">d</span> <span class="n">example</span><span class="o">.</span><span class="n">com</span>
</pre></div>
</div>
<p>The same format can be used to expand the set of domains a certificate contains, or to
replace that set entirely:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">certbot</span> <span class="n">certonly</span> <span class="o">--</span><span class="n">cert</span><span class="o">-</span><span class="n">name</span> <span class="n">example</span><span class="o">.</span><span class="n">com</span> <span class="o">-</span><span class="n">d</span> <span class="n">example</span><span class="o">.</span><span class="n">org</span><span class="p">,</span><span class="n">www</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">org</span>
</pre></div>
</div>
<div class="section" id="revoking-certificates">
<h3><a class="toc-backref" href="#id22">Revoking certificates</a><a class="headerlink" href="#revoking-certificates" title="Permalink to this headline"></a></h3>
<p>If your account key has been compromised or you otherwise need to revoke a certificate,
use the <code class="docutils literal"><span class="pre">revoke</span></code> command to do so. Note that the <code class="docutils literal"><span class="pre">revoke</span></code> command takes the certificate path
(ending in <code class="docutils literal"><span class="pre">cert.pem</span></code>), not a certificate name or domain. Example:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">certbot</span> <span class="n">revoke</span> <span class="o">--</span><span class="n">cert</span><span class="o">-</span><span class="n">path</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">letsencrypt</span><span class="o">/</span><span class="n">live</span><span class="o">/</span><span class="n">CERTNAME</span><span class="o">/</span><span class="n">cert</span><span class="o">.</span><span class="n">pem</span>
</pre></div>
</div>
<p>You can also specify the reason for revoking your certificate by using the <code class="docutils literal"><span class="pre">reason</span></code> flag.
Reasons include <code class="docutils literal"><span class="pre">unspecified</span></code> which is the default, as well as <code class="docutils literal"><span class="pre">keycompromise</span></code>,
<code class="docutils literal"><span class="pre">affiliationchanged</span></code>, <code class="docutils literal"><span class="pre">superseded</span></code>, and <code class="docutils literal"><span class="pre">cessationofoperation</span></code>:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">certbot</span> <span class="n">revoke</span> <span class="o">--</span><span class="n">cert</span><span class="o">-</span><span class="n">path</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">letsencrypt</span><span class="o">/</span><span class="n">live</span><span class="o">/</span><span class="n">CERTNAME</span><span class="o">/</span><span class="n">cert</span><span class="o">.</span><span class="n">pem</span> <span class="o">--</span><span class="n">reason</span> <span class="n">keycompromise</span>
</pre></div>
</div>
<p>Additionally, if a certificate
is a test certificate obtained via the <code class="docutils literal"><span class="pre">--staging</span></code> or <code class="docutils literal"><span class="pre">--test-cert</span></code> flag, that flag must be passed to the
<code class="docutils literal"><span class="pre">revoke</span></code> subcommand.
Once a certificate is revoked (or for other certificate management tasks), all of a certificate’s
relevant files can be removed from the system with the <code class="docutils literal"><span class="pre">delete</span></code> subcommand:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">certbot</span> <span class="n">delete</span> <span class="o">--</span><span class="n">cert</span><span class="o">-</span><span class="n">name</span> <span class="n">example</span><span class="o">.</span><span class="n">com</span>
</pre></div>
</div>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">If you don’t use <code class="docutils literal"><span class="pre">delete</span></code> to remove the certificate completely, it will be renewed automatically at the next renewal event.</p>
</div>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Revoking a certificate will have no effect on the rate limit imposed by the Let’s Encrypt server.</p>
</div>
</div>
<div class="section" id="renewing-certificates">
<span id="renewal"></span><h3><a class="toc-backref" href="#id23">Renewing certificates</a><a class="headerlink" href="#renewing-certificates" title="Permalink to this headline"></a></h3>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Let’s Encrypt CA issues short-lived certificates (90
days). Make sure you renew the certificates at least once in 3
months.</p>
</div>
<p>As of version 0.10.0, Certbot supports a <code class="docutils literal"><span class="pre">renew</span></code> action to check
all installed certificates for impending expiry and attempt to renew
them. The simplest form is simply</p>
<p><code class="docutils literal"><span class="pre">certbot</span> <span class="pre">renew</span></code></p>
<p>This command attempts to renew any previously-obtained certificates that
expire in less than 30 days. The same plugin and options that were used
at the time the certificate was originally issued will be used for the
renewal attempt, unless you specify other plugins or options. Unlike <code class="docutils literal"><span class="pre">certonly</span></code>, <code class="docutils literal"><span class="pre">renew</span></code> acts on
multiple certificates and always takes into account whether each one is near
expiry. Because of this, <code class="docutils literal"><span class="pre">renew</span></code> is suitable (and designed) for automated use,
to allow your system to automatically renew each certificate when appropriate.
Since <code class="docutils literal"><span class="pre">renew</span></code> only renews certificates that are near expiry it can be
run as frequently as you want - since it will usually take no action.</p>
<p>The <code class="docutils literal"><span class="pre">renew</span></code> command includes hooks for running commands or scripts before or after a certificate is
renewed. For example, if you have a single certificate obtained using
the <a class="reference internal" href="#standalone">standalone</a> plugin, you might need to stop the webserver
before renewing so standalone can bind to the necessary ports, and
then restart it after the plugin is finished. Example:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">certbot</span> <span class="n">renew</span> <span class="o">--</span><span class="n">pre</span><span class="o">-</span><span class="n">hook</span> <span class="s2">&quot;service nginx stop&quot;</span> <span class="o">--</span><span class="n">post</span><span class="o">-</span><span class="n">hook</span> <span class="s2">&quot;service nginx start&quot;</span>
</pre></div>
</div>
<p>If a hook exits with a non-zero exit code, the error will be printed
to <code class="docutils literal"><span class="pre">stderr</span></code> but renewal will be attempted anyway. A failing hook
doesn’t directly cause Certbot to exit with a non-zero exit code, but
since Certbot exits with a non-zero exit code when renewals fail, a
failed hook causing renewal failures will indirectly result in a
non-zero exit code. Hooks will only be run if a certificate is due for
renewal, so you can run the above command frequently without
unnecessarily stopping your webserver.</p>
<p><code class="docutils literal"><span class="pre">--pre-hook</span></code> and <code class="docutils literal"><span class="pre">--post-hook</span></code> hooks run before and after every renewal
attempt. If you want your hook to run only after a successful renewal, use
<code class="docutils literal"><span class="pre">--deploy-hook</span></code> in a command like this.</p>
<p><code class="docutils literal"><span class="pre">certbot</span> <span class="pre">renew</span> <span class="pre">--deploy-hook</span> <span class="pre">/path/to/deploy-hook-script</span></code></p>
<p>For example, if you have a daemon that does not read its certificates as the
root user, a deploy hook like this can copy them to the correct location and
apply appropriate file permissions.</p>
<p>/path/to/deploy-hook-script</p>
<div class="highlight-none"><div class="highlight"><pre><span></span>#!/bin/sh

set -e

for domain in $RENEWED_DOMAINS; do
        case $domain in
        example.com)
                daemon_cert_root=/etc/some-daemon/certs

                # Make sure the certificate and private key files are
                # never world readable, even just for an instant while
                # we&#39;re copying them into daemon_cert_root.
                umask 077

                cp &quot;$RENEWED_LINEAGE/fullchain.pem&quot; &quot;$daemon_cert_root/$domain.cert&quot;
                cp &quot;$RENEWED_LINEAGE/privkey.pem&quot; &quot;$daemon_cert_root/$domain.key&quot;

                # Apply the proper file ownership and permissions for
                # the daemon to read its certificate and key.
                chown some-daemon &quot;$daemon_cert_root/$domain.cert&quot; \
                        &quot;$daemon_cert_root/$domain.key&quot;
                chmod 400 &quot;$daemon_cert_root/$domain.cert&quot; \
                        &quot;$daemon_cert_root/$domain.key&quot;

                service some-daemon restart &gt;/dev/null
                ;;
        esac
done
</pre></div>
</div>
<p>You can also specify hooks by placing files in subdirectories of Certbot’s
configuration directory. Assuming your configuration directory is
<code class="docutils literal"><span class="pre">/etc/letsencrypt</span></code>, any executable files found in
<code class="docutils literal"><span class="pre">/etc/letsencrypt/renewal-hooks/pre</span></code>,
<code class="docutils literal"><span class="pre">/etc/letsencrypt/renewal-hooks/deploy</span></code>, and
<code class="docutils literal"><span class="pre">/etc/letsencrypt/renewal-hooks/post</span></code> will be run as pre, deploy, and post
hooks respectively when any certificate is renewed with the <code class="docutils literal"><span class="pre">renew</span></code>
subcommand. These hooks are run in alphabetical order and are not run for other
subcommands. (The order the hooks are run is determined by the byte value of
the characters in their filenames and is not dependent on your locale.)</p>
<p>Hooks specified in the command line, <a class="reference internal" href="#config-file"><span class="std std-ref">configuration file</span></a>, or <a class="reference internal" href="#renewal-config-file"><span class="std std-ref">renewal configuration files</span></a> are
run as usual after running all hooks in these directories. One minor exception
to this is if a hook specified elsewhere is simply the path to an executable
file in the hook directory of the same type (e.g. your pre-hook is the path to
an executable in <code class="docutils literal"><span class="pre">/etc/letsencrypt/renewal-hooks/pre</span></code>), the file is not run a
second time. You can stop Certbot from automatically running executables found
in these directories by including <code class="docutils literal"><span class="pre">--no-directory-hooks</span></code> on the command line.</p>
<p>More information about hooks can be found by running
<code class="docutils literal"><span class="pre">certbot</span> <span class="pre">--help</span> <span class="pre">renew</span></code>.</p>
<p>If you’re sure that this command executes successfully without human
intervention, you can add the command to <code class="docutils literal"><span class="pre">crontab</span></code> (since certificates
are only renewed when they’re determined to be near expiry, the command
can run on a regular basis, like every week or every day). In that case,
you are likely to want to use the <code class="docutils literal"><span class="pre">-q</span></code> or <code class="docutils literal"><span class="pre">--quiet</span></code> quiet flag to
silence all output except errors.</p>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last">Many of the certbot clients obtained through a
distribution come with automatic renewal out of the box,
such as Debian and Ubuntu versions installed through <code class="xref py py-obj docutils literal"><span class="pre">apt</span></code>,
CentOS/RHEL 7 through EPEL, etc.  See <a class="reference internal" href="#automated-renewals">Automated Renewals</a>
for more details.</p>
</div>
<p>If you are manually renewing all of your certificates, the
<code class="docutils literal"><span class="pre">--force-renewal</span></code> flag may be helpful; it causes the expiration time of
the certificate(s) to be ignored when considering renewal, and attempts to
renew each and every installed certificate regardless of its age. (This
form is not appropriate to run daily because each certificate will be
renewed every day, which will quickly run into the certificate authority
rate limit.)</p>
<p>Note that options provided to <code class="docutils literal"><span class="pre">certbot</span> <span class="pre">renew</span></code> will apply to
<em>every</em> certificate for which renewal is attempted; for example,
<code class="docutils literal"><span class="pre">certbot</span> <span class="pre">renew</span> <span class="pre">--rsa-key-size</span> <span class="pre">4096</span></code> would try to replace every
near-expiry certificate with an equivalent certificate using a 4096-bit
RSA public key. If a certificate is successfully renewed using
specified options, those options will be saved and used for future
renewals of that certificate.</p>
<p>An alternative form that provides for more fine-grained control over the
renewal process (while renewing specified certificates one at a time),
is <code class="docutils literal"><span class="pre">certbot</span> <span class="pre">certonly</span></code> with the complete set of subject domains of
a specific certificate specified via <code class="xref py py-obj docutils literal"><span class="pre">-d</span></code> flags. You may also want to
include the <code class="docutils literal"><span class="pre">-n</span></code> or <code class="docutils literal"><span class="pre">--noninteractive</span></code> flag to prevent blocking on
user input (which is useful when running the command from cron).</p>
<p><code class="docutils literal"><span class="pre">certbot</span> <span class="pre">certonly</span> <span class="pre">-n</span> <span class="pre">-d</span> <span class="pre">example.com</span> <span class="pre">-d</span> <span class="pre">www.example.com</span></code></p>
<p>All of the domains covered by the certificate must be specified in
this case in order to renew and replace the old certificate rather
than obtaining a new one; don’t forget any <code class="xref py py-obj docutils literal"><span class="pre">www.</span></code> domains! Specifying
a subset of the domains creates a new, separate certificate containing
only those domains, rather than replacing the original certificate.
When run with a set of domains corresponding to an existing certificate,
the <code class="docutils literal"><span class="pre">certonly</span></code> command attempts to renew that specific certificate.</p>
<p>Please note that the CA will send notification emails to the address
you provide if you do not renew certificates that are about to expire.</p>
<p>Certbot is working hard to improve the renewal process, and we
apologize for any inconvenience you encounter in integrating these
commands into your individual environment.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last"><code class="docutils literal"><span class="pre">certbot</span> <span class="pre">renew</span></code> exit status will only be 1 if a renewal attempt failed.
This means <code class="docutils literal"><span class="pre">certbot</span> <span class="pre">renew</span></code> exit status will be 0 if no certificate needs to be updated.
If you write a custom script and expect to run a command only after a certificate was actually renewed
you will need to use the <code class="docutils literal"><span class="pre">--post-hook</span></code> since the exit status will be 0 both on successful renewal
and when renewal is not necessary.</p>
</div>
</div>
<div class="section" id="modifying-the-renewal-configuration-file">
<span id="renewal-config-file"></span><h3><a class="toc-backref" href="#id24">Modifying the Renewal Configuration File</a><a class="headerlink" href="#modifying-the-renewal-configuration-file" title="Permalink to this headline"></a></h3>
<p>When a certificate is issued, by default Certbot creates a renewal configuration file that
tracks the options that were selected when Certbot was run. This allows Certbot
to use those same options again when it comes time for renewal. These renewal
configuration files are located at <code class="docutils literal"><span class="pre">/etc/letsencrypt/renewal/CERTNAME</span></code>.</p>
<p>For advanced certificate management tasks, it is possible to manually modify the certificate’s
renewal configuration file, but this is discouraged since it can easily break Certbot’s
ability to renew your certificates. If you choose to modify the renewal configuration file
we advise you to test its validity with the <code class="docutils literal"><span class="pre">certbot</span> <span class="pre">renew</span> <span class="pre">--dry-run</span></code> command.</p>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">Modifying any files in <code class="docutils literal"><span class="pre">/etc/letsencrypt</span></code> can damage them so Certbot can no longer properly manage its certificates, and we do not recommend doing so.</p>
</div>
<p>For most tasks, it is safest to limit yourself to pointing symlinks at the files there, or using
<code class="docutils literal"><span class="pre">--deploy-hook</span></code> to copy / make new files based upon those files, if your operational situation requires it
(for instance, combining certificates and keys in different way, or having copies of things with different
specific permissions that are demanded by other programs).</p>
<p>If the contents of <code class="docutils literal"><span class="pre">/etc/letsencrypt/archive/CERTNAME</span></code> are moved to a new folder, first specify
the new folder’s name in the renewal configuration file, then run <code class="docutils literal"><span class="pre">certbot</span> <span class="pre">update_symlinks</span></code> to
point the symlinks in <code class="docutils literal"><span class="pre">/etc/letsencrypt/live/CERTNAME</span></code> to the new folder.</p>
<p>If you would like the live certificate files whose symlink location Certbot updates on each run to
reside in a different location, first move them to that location, then specify the full path of
each of the four files in the renewal configuration file. Since the symlinks are relative links,
you must follow this with an invocation of <code class="docutils literal"><span class="pre">certbot</span> <span class="pre">update_symlinks</span></code>.</p>
<p>For example, say that a certificate’s renewal configuration file previously contained the following
directives:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">archive_dir</span> <span class="o">=</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">letsencrypt</span><span class="o">/</span><span class="n">archive</span><span class="o">/</span><span class="n">example</span><span class="o">.</span><span class="n">com</span>
<span class="n">cert</span> <span class="o">=</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">letsencrypt</span><span class="o">/</span><span class="n">live</span><span class="o">/</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">cert</span><span class="o">.</span><span class="n">pem</span>
<span class="n">privkey</span> <span class="o">=</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">letsencrypt</span><span class="o">/</span><span class="n">live</span><span class="o">/</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">privkey</span><span class="o">.</span><span class="n">pem</span>
<span class="n">chain</span> <span class="o">=</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">letsencrypt</span><span class="o">/</span><span class="n">live</span><span class="o">/</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">chain</span><span class="o">.</span><span class="n">pem</span>
<span class="n">fullchain</span> <span class="o">=</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">letsencrypt</span><span class="o">/</span><span class="n">live</span><span class="o">/</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">fullchain</span><span class="o">.</span><span class="n">pem</span>
</pre></div>
</div>
<p>The following commands could be used to specify where these files are located:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mv</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">letsencrypt</span><span class="o">/</span><span class="n">archive</span><span class="o">/</span><span class="n">example</span><span class="o">.</span><span class="n">com</span> <span class="o">/</span><span class="n">home</span><span class="o">/</span><span class="n">user</span><span class="o">/</span><span class="n">me</span><span class="o">/</span><span class="n">certbot</span><span class="o">/</span><span class="n">example_archive</span>
<span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="s1">&#39;s,/etc/letsencrypt/archive/example.com,/home/user/me/certbot/example_archive,&#39;</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">letsencrypt</span><span class="o">/</span><span class="n">renewal</span><span class="o">/</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="o">.</span><span class="n">conf</span>
<span class="n">mv</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">letsencrypt</span><span class="o">/</span><span class="n">live</span><span class="o">/</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="o">/*.</span><span class="n">pem</span> <span class="o">/</span><span class="n">home</span><span class="o">/</span><span class="n">user</span><span class="o">/</span><span class="n">me</span><span class="o">/</span><span class="n">certbot</span><span class="o">/</span>
<span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="s1">&#39;s,/etc/letsencrypt/live/example.com,/home/user/me/certbot,g&#39;</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">letsencrypt</span><span class="o">/</span><span class="n">renewal</span><span class="o">/</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="o">.</span><span class="n">conf</span>
<span class="n">certbot</span> <span class="n">update_symlinks</span>
</pre></div>
</div>
</div>
<div class="section" id="automated-renewals">
<h3><a class="toc-backref" href="#id25">Automated Renewals</a><a class="headerlink" href="#automated-renewals" title="Permalink to this headline"></a></h3>
<p>Many Linux distributions provide automated renewal when you use the
packages installed through their system package manager.  The
following table is an <em>incomplete</em> list of distributions which do so,
as well as their methods for doing so.</p>
<p>If you are not sure whether or not your system has this already
automated, refer to your distribution’s documentation, or check your
system’s crontab (typically in <code class="xref py py-obj docutils literal"><span class="pre">/etc/crontab/</span></code> and <code class="xref py py-obj docutils literal"><span class="pre">/etc/cron.*/*</span></code> and
systemd timers (<code class="xref py py-obj docutils literal"><span class="pre">systemctl</span> <span class="pre">list-timers</span></code>).</p>
<table border="1" class="docutils" id="id8">
<caption><span class="caption-text">Distributions with Automated Renewal</span><a class="headerlink" href="#id8" title="Permalink to this table"></a></caption>
<colgroup>
<col width="33%" />
<col width="33%" />
<col width="33%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Distribution Name</th>
<th class="head">Distribution Version</th>
<th class="head">Automation Method</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>CentOS</td>
<td>EPEL 7</td>
<td>systemd</td>
</tr>
<tr class="row-odd"><td>Debian</td>
<td>jessie</td>
<td>cron, systemd</td>
</tr>
<tr class="row-even"><td>Debian</td>
<td>stretch</td>
<td>cron, systemd</td>
</tr>
<tr class="row-odd"><td>Debian</td>
<td>testing/sid</td>
<td>cron, systemd</td>
</tr>
<tr class="row-even"><td>Fedora</td>
<td>26</td>
<td>systemd</td>
</tr>
<tr class="row-odd"><td>Fedora</td>
<td>27</td>
<td>systemd</td>
</tr>
<tr class="row-even"><td>RHEL</td>
<td>EPEL 7</td>
<td>systemd</td>
</tr>
<tr class="row-odd"><td>Ubuntu</td>
<td>17.10</td>
<td>cron, systemd</td>
</tr>
<tr class="row-even"><td>Ubuntu</td>
<td>certbot PPA</td>
<td>cron, systemd</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="where-are-my-certificates">
<span id="where-certs"></span><h2><a class="toc-backref" href="#id26">Where are my certificates?</a><a class="headerlink" href="#where-are-my-certificates" title="Permalink to this headline"></a></h2>
<p>All generated keys and issued certificates can be found in
<code class="docutils literal"><span class="pre">/etc/letsencrypt/live/$domain</span></code>. Rather than copying, please point
your (web) server configuration directly to those files (or create
symlinks). During the <a class="reference internal" href="#renewal">renewal</a>, <code class="docutils literal"><span class="pre">/etc/letsencrypt/live</span></code> is updated
with the latest necessary files.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last"><code class="docutils literal"><span class="pre">/etc/letsencrypt/archive</span></code> and <code class="docutils literal"><span class="pre">/etc/letsencrypt/keys</span></code>
contain all previous keys and certificates, while
<code class="docutils literal"><span class="pre">/etc/letsencrypt/live</span></code> symlinks to the latest versions.</p>
</div>
<p>The following files are available:</p>
<dl class="docutils">
<dt><code class="docutils literal"><span class="pre">privkey.pem</span></code></dt>
<dd><p class="first">Private key for the certificate.</p>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">This <strong>must be kept secret at all times</strong>! Never share
it with anyone, including Certbot developers. You cannot
put it into a safe, however - your server still needs to access
this file in order for SSL/TLS to work.</p>
</div>
<p class="last">This is what Apache needs for <a class="reference external" href="https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslcertificatekeyfile">SSLCertificateKeyFile</a>,
and Nginx for <a class="reference external" href="http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_certificate_key">ssl_certificate_key</a>.</p>
</dd>
<dt><code class="docutils literal"><span class="pre">fullchain.pem</span></code></dt>
<dd><p class="first">All certificates, <strong>including</strong> server certificate (aka leaf certificate or
end-entity certificate). The server certificate is the first one in this file,
followed by any intermediates.</p>
<p class="last">This is what Apache &gt;= 2.4.8 needs for <a class="reference external" href="https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslcertificatefile">SSLCertificateFile</a>,
and what Nginx needs for <a class="reference external" href="http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_certificate">ssl_certificate</a>.</p>
</dd>
<dt><code class="docutils literal"><span class="pre">cert.pem</span></code> and <code class="docutils literal"><span class="pre">chain.pem</span></code> (less common)</dt>
<dd><p class="first"><code class="docutils literal"><span class="pre">cert.pem</span></code> contains the server certificate by itself, and
<code class="docutils literal"><span class="pre">chain.pem</span></code> contains the additional intermediate certificate or
certificates that web browsers will need in order to validate the
server certificate. If you provide one of these files to your web
server, you <strong>must</strong> provide both of them, or some browsers will show
“This Connection is Untrusted” errors for your site, <a class="reference external" href="https://whatsmychaincert.com/">some of the time</a>.</p>
<p>Apache &lt; 2.4.8 needs these for <a class="reference external" href="https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslcertificatefile">SSLCertificateFile</a>.
and <a class="reference external" href="https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslcertificatechainfile">SSLCertificateChainFile</a>,
respectively.</p>
<p class="last">If you’re using OCSP stapling with Nginx &gt;= 1.3.7, <code class="docutils literal"><span class="pre">chain.pem</span></code> should be
provided as the <a class="reference external" href="http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_trusted_certificate">ssl_trusted_certificate</a>
to validate OCSP responses.</p>
</dd>
</dl>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">All files are PEM-encoded.
If you need other format, such as DER or PFX, then you
could convert using <code class="docutils literal"><span class="pre">openssl</span></code>. You can automate that with
<code class="docutils literal"><span class="pre">--deploy-hook</span></code> if you’re using automatic <a class="reference internal" href="#renewal">renewal</a>.</p>
</div>
</div>
<div class="section" id="pre-and-post-validation-hooks">
<span id="hooks"></span><h2><a class="toc-backref" href="#id27">Pre and Post Validation Hooks</a><a class="headerlink" href="#pre-and-post-validation-hooks" title="Permalink to this headline"></a></h2>
<p>Certbot allows for the specification of pre and post validation hooks when run
in manual mode. The flags to specify these scripts are <code class="docutils literal"><span class="pre">--manual-auth-hook</span></code>
and <code class="docutils literal"><span class="pre">--manual-cleanup-hook</span></code> respectively and can be used as follows:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">certbot</span> <span class="n">certonly</span> <span class="o">--</span><span class="n">manual</span> <span class="o">--</span><span class="n">manual</span><span class="o">-</span><span class="n">auth</span><span class="o">-</span><span class="n">hook</span> <span class="o">/</span><span class="n">path</span><span class="o">/</span><span class="n">to</span><span class="o">/</span><span class="n">http</span><span class="o">/</span><span class="n">authenticator</span><span class="o">.</span><span class="n">sh</span> <span class="o">--</span><span class="n">manual</span><span class="o">-</span><span class="n">cleanup</span><span class="o">-</span><span class="n">hook</span> <span class="o">/</span><span class="n">path</span><span class="o">/</span><span class="n">to</span><span class="o">/</span><span class="n">http</span><span class="o">/</span><span class="n">cleanup</span><span class="o">.</span><span class="n">sh</span> <span class="o">-</span><span class="n">d</span> <span class="n">secure</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span>
</pre></div>
</div>
<p>This will run the <code class="docutils literal"><span class="pre">authenticator.sh</span></code> script, attempt the validation, and then run
the <code class="docutils literal"><span class="pre">cleanup.sh</span></code> script. Additionally certbot will pass relevant environment
variables to these scripts:</p>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">CERTBOT_DOMAIN</span></code>: The domain being authenticated</li>
<li><code class="docutils literal"><span class="pre">CERTBOT_VALIDATION</span></code>: The validation string (HTTP-01 and DNS-01 only)</li>
<li><code class="docutils literal"><span class="pre">CERTBOT_TOKEN</span></code>: Resource name part of the HTTP-01 challenge (HTTP-01 only)</li>
<li><code class="docutils literal"><span class="pre">CERTBOT_CERT_PATH</span></code>: The challenge SSL certificate (TLS-SNI-01 only)</li>
<li><code class="docutils literal"><span class="pre">CERTBOT_KEY_PATH</span></code>: The private key associated with the aforementioned SSL certificate (TLS-SNI-01 only)</li>
<li><code class="docutils literal"><span class="pre">CERTBOT_SNI_DOMAIN</span></code>: The SNI name for which the ACME server expects to be presented the self-signed certificate located at <code class="docutils literal"><span class="pre">$CERTBOT_CERT_PATH</span></code> (TLS-SNI-01 only)</li>
</ul>
<p>Additionally for cleanup:</p>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">CERTBOT_AUTH_OUTPUT</span></code>: Whatever the auth script wrote to stdout</li>
</ul>
<p>Example usage for HTTP-01:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">certbot</span> <span class="n">certonly</span> <span class="o">--</span><span class="n">manual</span> <span class="o">--</span><span class="n">preferred</span><span class="o">-</span><span class="n">challenges</span><span class="o">=</span><span class="n">http</span> <span class="o">--</span><span class="n">manual</span><span class="o">-</span><span class="n">auth</span><span class="o">-</span><span class="n">hook</span> <span class="o">/</span><span class="n">path</span><span class="o">/</span><span class="n">to</span><span class="o">/</span><span class="n">http</span><span class="o">/</span><span class="n">authenticator</span><span class="o">.</span><span class="n">sh</span> <span class="o">--</span><span class="n">manual</span><span class="o">-</span><span class="n">cleanup</span><span class="o">-</span><span class="n">hook</span> <span class="o">/</span><span class="n">path</span><span class="o">/</span><span class="n">to</span><span class="o">/</span><span class="n">http</span><span class="o">/</span><span class="n">cleanup</span><span class="o">.</span><span class="n">sh</span> <span class="o">-</span><span class="n">d</span> <span class="n">secure</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span>
</pre></div>
</div>
<p>/path/to/http/authenticator.sh</p>
<div class="highlight-none"><div class="highlight"><pre><span></span>#!/bin/bash
echo $CERTBOT_VALIDATION &gt; /var/www/htdocs/.well-known/acme-challenge/$CERTBOT_TOKEN
</pre></div>
</div>
<p>/path/to/http/cleanup.sh</p>
<div class="highlight-none"><div class="highlight"><pre><span></span>#!/bin/bash
rm -f /var/www/htdocs/.well-known/acme-challenge/$CERTBOT_TOKEN
</pre></div>
</div>
<p>Example usage for DNS-01 (Cloudflare API v4) (for example purposes only, do not use as-is)</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">certbot</span> <span class="n">certonly</span> <span class="o">--</span><span class="n">manual</span> <span class="o">--</span><span class="n">preferred</span><span class="o">-</span><span class="n">challenges</span><span class="o">=</span><span class="n">dns</span> <span class="o">--</span><span class="n">manual</span><span class="o">-</span><span class="n">auth</span><span class="o">-</span><span class="n">hook</span> <span class="o">/</span><span class="n">path</span><span class="o">/</span><span class="n">to</span><span class="o">/</span><span class="n">dns</span><span class="o">/</span><span class="n">authenticator</span><span class="o">.</span><span class="n">sh</span> <span class="o">--</span><span class="n">manual</span><span class="o">-</span><span class="n">cleanup</span><span class="o">-</span><span class="n">hook</span> <span class="o">/</span><span class="n">path</span><span class="o">/</span><span class="n">to</span><span class="o">/</span><span class="n">dns</span><span class="o">/</span><span class="n">cleanup</span><span class="o">.</span><span class="n">sh</span> <span class="o">-</span><span class="n">d</span> <span class="n">secure</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span>
</pre></div>
</div>
<p>/path/to/dns/authenticator.sh</p>
<div class="highlight-none"><div class="highlight"><pre><span></span>#!/bin/bash

# Get your API key from https://www.cloudflare.com/a/account/my-account
API_KEY=&quot;your-api-key&quot;
EMAIL=&quot;your.email@example.com&quot;

# Strip only the top domain to get the zone id
DOMAIN=$(expr match &quot;$CERTBOT_DOMAIN&quot; &#39;.*\.\(.*\..*\)&#39;)

# Get the Cloudflare zone id
ZONE_EXTRA_PARAMS=&quot;status=active&amp;page=1&amp;per_page=20&amp;order=status&amp;direction=desc&amp;match=all&quot;
ZONE_ID=$(curl -s -X GET &quot;https://api.cloudflare.com/client/v4/zones?name=$DOMAIN&amp;$ZONE_EXTRA_PARAMS&quot; \
     -H     &quot;X-Auth-Email: $EMAIL&quot; \
     -H     &quot;X-Auth-Key: $API_KEY&quot; \
     -H     &quot;Content-Type: application/json&quot; | python -c &quot;import sys,json;print(json.load(sys.stdin)[&#39;result&#39;][0][&#39;id&#39;])&quot;)

# Create TXT record
CREATE_DOMAIN=&quot;_acme-challenge.$CERTBOT_DOMAIN&quot;
RECORD_ID=$(curl -s -X POST &quot;https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records&quot; \
     -H     &quot;X-Auth-Email: $EMAIL&quot; \
     -H     &quot;X-Auth-Key: $API_KEY&quot; \
     -H     &quot;Content-Type: application/json&quot; \
     --data &#39;{&quot;type&quot;:&quot;TXT&quot;,&quot;name&quot;:&quot;&#39;&quot;$CREATE_DOMAIN&quot;&#39;&quot;,&quot;content&quot;:&quot;&#39;&quot;$CERTBOT_VALIDATION&quot;&#39;&quot;,&quot;ttl&quot;:120}&#39; \
             | python -c &quot;import sys,json;print(json.load(sys.stdin)[&#39;result&#39;][&#39;id&#39;])&quot;)
# Save info for cleanup
if [ ! -d /tmp/CERTBOT_$CERTBOT_DOMAIN ];then
        mkdir -m 0700 /tmp/CERTBOT_$CERTBOT_DOMAIN
fi
echo $ZONE_ID &gt; /tmp/CERTBOT_$CERTBOT_DOMAIN/ZONE_ID
echo $RECORD_ID &gt; /tmp/CERTBOT_$CERTBOT_DOMAIN/RECORD_ID

# Sleep to make sure the change has time to propagate over to DNS
sleep 25
</pre></div>
</div>
<p>/path/to/dns/cleanup.sh</p>
<div class="highlight-none"><div class="highlight"><pre><span></span>#!/bin/bash

# Get your API key from https://www.cloudflare.com/a/account/my-account
API_KEY=&quot;your-api-key&quot;
EMAIL=&quot;your.email@example.com&quot;

if [ -f /tmp/CERTBOT_$CERTBOT_DOMAIN/ZONE_ID ]; then
        ZONE_ID=$(cat /tmp/CERTBOT_$CERTBOT_DOMAIN/ZONE_ID)
        rm -f /tmp/CERTBOT_$CERTBOT_DOMAIN/ZONE_ID
fi

if [ -f /tmp/CERTBOT_$CERTBOT_DOMAIN/RECORD_ID ]; then
        RECORD_ID=$(cat /tmp/CERTBOT_$CERTBOT_DOMAIN/RECORD_ID)
        rm -f /tmp/CERTBOT_$CERTBOT_DOMAIN/RECORD_ID
fi

# Remove the challenge TXT record from the zone
if [ -n &quot;${ZONE_ID}&quot; ]; then
    if [ -n &quot;${RECORD_ID}&quot; ]; then
        curl -s -X DELETE &quot;https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records/$RECORD_ID&quot; \
                -H &quot;X-Auth-Email: $EMAIL&quot; \
                -H &quot;X-Auth-Key: $API_KEY&quot; \
                -H &quot;Content-Type: application/json&quot;
    fi
fi
</pre></div>
</div>
</div>
<div class="section" id="changing-the-acme-server">
<span id="lock-files"></span><h2><a class="toc-backref" href="#id28">Changing the ACME Server</a><a class="headerlink" href="#changing-the-acme-server" title="Permalink to this headline"></a></h2>
<p>By default, Certbot uses Let’s Encrypt’s initial production server at
<a class="reference external" href="https://acme-v01.api.letsencrypt.org/">https://acme-v01.api.letsencrypt.org/</a>. You can tell Certbot to use a
different CA by providing <code class="docutils literal"><span class="pre">--server</span></code> on the command line or in a
<a class="reference internal" href="#config-file"><span class="std std-ref">configuration file</span></a> with the URL of the server’s
ACME directory. For example, if you would like to use Let’s Encrypt’s
new ACMEv2 server, you would add <code class="docutils literal"><span class="pre">--server</span>
<span class="pre">https://acme-v02.api.letsencrypt.org/directory</span></code> to the command line.
Certbot will automatically select which version of the ACME protocol to
use based on the contents served at the provided URL.</p>
<p>If you use <code class="docutils literal"><span class="pre">--server</span></code> to specify an ACME CA that implements a newer
version of the spec, you may be able to obtain a certificate for a
wildcard domain. Some CAs (such as Let’s Encrypt) require that domain
validation for wildcard domains must be done through modifications to
DNS records which means that the <a class="reference external" href="https://tools.ietf.org/html/draft-ietf-acme-acme-03#section-7.4">dns-01</a> challenge type must be used. To
see a list of Certbot plugins that support this challenge type and how
to use them, see <a class="reference internal" href="#plugins">plugins</a>.</p>
</div>
<div class="section" id="id6">
<h2><a class="toc-backref" href="#id29">Lock Files</a><a class="headerlink" href="#id6" title="Permalink to this headline"></a></h2>
<p>When processing a validation Certbot writes a number of lock files on your system
to prevent multiple instances from overwriting each other’s changes. This means
that be default two instances of Certbot will not be able to run in parallel.</p>
<p>Since the directories used by Certbot are configurable, Certbot
will write a lock file for all of the directories it uses. This include Certbot’s
<code class="docutils literal"><span class="pre">--work-dir</span></code>, <code class="docutils literal"><span class="pre">--logs-dir</span></code>, and <code class="docutils literal"><span class="pre">--config-dir</span></code>. By default these are
<code class="docutils literal"><span class="pre">/var/lib/letsencrypt</span></code>, <code class="docutils literal"><span class="pre">/var/logs/letsencrypt</span></code>, and <code class="docutils literal"><span class="pre">/etc/letsencrypt</span></code>
respectively. Additionally if you are using Certbot with Apache or nginx it will
lock the configuration folder for that program, which are typically also in the
<code class="docutils literal"><span class="pre">/etc</span></code> directory.</p>
<p>Note that these lock files will only prevent other instances of Certbot from
using those directories, not other processes. If you’d like to run multiple
instances of Certbot simultaneously you should specify different directories
as the <code class="docutils literal"><span class="pre">--work-dir</span></code>, <code class="docutils literal"><span class="pre">--logs-dir</span></code>, and <code class="docutils literal"><span class="pre">--config-dir</span></code> for each instance
of Certbot that you would like to run.</p>
</div>
<div class="section" id="configuration-file">
<span id="config-file"></span><h2><a class="toc-backref" href="#id30">Configuration file</a><a class="headerlink" href="#configuration-file" title="Permalink to this headline"></a></h2>
<p>Certbot accepts a global configuration file that applies its options to all invocations
of Certbot. Certificate specific configuration choices should be set in the <code class="docutils literal"><span class="pre">.conf</span></code>
files that can be found in <code class="docutils literal"><span class="pre">/etc/letsencrypt/renewal</span></code>.</p>
<p>By default no cli.ini file is created, after creating one
it is possible to specify the location of this configuration file with
<code class="docutils literal"><span class="pre">certbot-auto</span> <span class="pre">--config</span> <span class="pre">cli.ini</span></code> (or shorter <code class="docutils literal"><span class="pre">-c</span> <span class="pre">cli.ini</span></code>). An
example configuration file is shown below:</p>
<div class="code ini highlight-default"><div class="highlight"><pre><span></span><span class="c1"># This is an example of the kind of things you can do in a configuration file.</span>
<span class="c1"># All flags used by the client can be configured here. Run Certbot with</span>
<span class="c1"># &quot;--help&quot; to learn more about the available options.</span>
<span class="c1">#</span>
<span class="c1"># Note that these options apply automatically to all use of Certbot for</span>
<span class="c1"># obtaining or renewing certificates, so options specific to a single</span>
<span class="c1"># certificate on a system with several certificates should not be placed</span>
<span class="c1"># here.</span>

<span class="c1"># Use a 4096 bit RSA key instead of 2048</span>
<span class="n">rsa</span><span class="o">-</span><span class="n">key</span><span class="o">-</span><span class="n">size</span> <span class="o">=</span> <span class="mi">4096</span>

<span class="c1"># Uncomment and update to register with the specified e-mail address</span>
<span class="c1"># email = foo@example.com</span>

<span class="c1"># Uncomment to use the standalone authenticator on port 443</span>
<span class="c1"># authenticator = standalone</span>
<span class="c1"># standalone-supported-challenges = tls-sni-01</span>

<span class="c1"># Uncomment to use the webroot authenticator. Replace webroot-path with the</span>
<span class="c1"># path to the public_html / webroot folder being served by your web server.</span>
<span class="c1"># authenticator = webroot</span>
<span class="c1"># webroot-path = /usr/share/nginx/html</span>
</pre></div>
</div>
<p>By default, the following locations are searched:</p>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">/etc/letsencrypt/cli.ini</span></code></li>
<li><code class="docutils literal"><span class="pre">$XDG_CONFIG_HOME/letsencrypt/cli.ini</span></code> (or
<code class="docutils literal"><span class="pre">~/.config/letsencrypt/cli.ini</span></code> if <code class="docutils literal"><span class="pre">$XDG_CONFIG_HOME</span></code> is not
set).</li>
</ul>
<p>Since this configuration file applies to all invocations of certbot it is incorrect
to list domains in it. Listing domains in cli.ini may prevent renewal from working.
Additionally due to how arguments in cli.ini are parsed, options which wish to
not be set should not be listed. Options set to false will instead be read
as being set to true by older versions of Certbot, since they have been listed
in the config file.</p>
</div>
<div class="section" id="log-rotation">
<span id="id7"></span><h2><a class="toc-backref" href="#id31">Log Rotation</a><a class="headerlink" href="#log-rotation" title="Permalink to this headline"></a></h2>
<p>By default certbot stores status logs in <code class="docutils literal"><span class="pre">/var/log/letsencrypt</span></code>. By default
certbot will begin rotating logs once there are 1000 logs in the log directory.
Meaning that once 1000 files are in <code class="docutils literal"><span class="pre">/var/log/letsencrypt</span></code> Certbot will delete
the oldest one to make room for new logs. The number of subsequent logs can be
changed by passing the desired number to the command line flag
<code class="docutils literal"><span class="pre">--max-log-backups</span></code>.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Some distributions, including Debian and Ubuntu, disable
certbot’s internal log rotation in favor of a more traditional
logrotate script.  If you are using a distribution’s packages and
want to alter the log rotation, check <code class="xref py py-obj docutils literal"><span class="pre">/etc/logrotate.d/</span></code> for a
certbot rotation script.</p>
</div>
</div>
<div class="section" id="certbot-command-line-options">
<span id="command-line"></span><h2><a class="toc-backref" href="#id32">Certbot command-line options</a><a class="headerlink" href="#certbot-command-line-options" title="Permalink to this headline"></a></h2>
<p>Certbot supports a lot of command line options. Here’s the full list, from
<code class="docutils literal"><span class="pre">certbot</span> <span class="pre">--help</span> <span class="pre">all</span></code>:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>usage: 
  certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...

Certbot can obtain and install HTTPS/TLS/SSL certificates.  By default,
it will attempt to use a webserver both for obtaining and installing the
certificate. The most common SUBCOMMANDS and flags are:

obtain, install, and renew certificates:
    (default) run   Obtain &amp; install a certificate in your current webserver
    certonly        Obtain or renew a certificate, but do not install it
    renew           Renew all previously obtained certificates that are near expiry
   -d DOMAINS       Comma-separated list of domains to obtain a certificate for

  --apache          Use the Apache plugin for authentication &amp; installation
  --standalone      Run a standalone webserver for authentication
  --nginx           Use the Nginx plugin for authentication &amp; installation
  --webroot         Place files in a server&#39;s webroot folder for authentication
  --manual          Obtain certificates interactively, or using shell script hooks

   -n               Run non-interactively
  --test-cert       Obtain a test certificate from a staging server
  --dry-run         Test &quot;renew&quot; or &quot;certonly&quot; without saving any certificates to disk

manage certificates:
    certificates    Display information about certificates you have from Certbot
    revoke          Revoke a certificate (supply --cert-path)
    delete          Delete a certificate

manage your account with Let&#39;s Encrypt:
    register        Create a Let&#39;s Encrypt ACME account
  --agree-tos       Agree to the ACME server&#39;s Subscriber Agreement
   -m EMAIL         Email address for important account notifications

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG_FILE, --config CONFIG_FILE
                        path to config file (default: /etc/letsencrypt/cli.ini
                        and ~/.config/letsencrypt/cli.ini)
  -v, --verbose         This flag can be used multiple times to incrementally
                        increase the verbosity of output, e.g. -vvv. (default:
                        -2)
  --max-log-backups MAX_LOG_BACKUPS
                        Specifies the maximum number of backup logs that
                        should be kept by Certbot&#39;s built in log rotation.
                        Setting this flag to 0 disables log rotation entirely,
                        causing Certbot to always append to the same log file.
                        (default: 1000)
  -n, --non-interactive, --noninteractive
                        Run without ever asking for user input. This may
                        require additional command line flags; the client will
                        try to explain which ones are required if it finds one
                        missing (default: False)
  --force-interactive   Force Certbot to be interactive even if it detects
                        it&#39;s not being run in a terminal. This flag cannot be
                        used with the renew subcommand. (default: False)
  -d DOMAIN, --domains DOMAIN, --domain DOMAIN
                        Domain names to apply. For multiple domains you can
                        use multiple -d flags or enter a comma separated list
                        of domains as a parameter. The first domain provided
                        will be the subject CN of the certificate, and all
                        domains will be Subject Alternative Names on the
                        certificate. The first domain will also be used in
                        some software user interfaces and as the file paths
                        for the certificate and related material unless
                        otherwise specified or you already have a certificate
                        with the same name. In the case of a name collision it
                        will append a number like 0001 to the file path name.
                        (default: Ask)
  --cert-name CERTNAME  Certificate name to apply. This name is used by
                        Certbot for housekeeping and in file paths; it doesn&#39;t
                        affect the content of the certificate itself. To see
                        certificate names, run &#39;certbot certificates&#39;. When
                        creating a new certificate, specifies the new
                        certificate&#39;s name. (default: the first provided
                        domain or the name of an existing certificate on your
                        system for the same domains)
  --dry-run             Perform a test run of the client, obtaining test
                        (invalid) certificates but not saving them to disk.
                        This can currently only be used with the &#39;certonly&#39;
                        and &#39;renew&#39; subcommands. Note: Although --dry-run
                        tries to avoid making any persistent changes on a
                        system, it is not completely side-effect free: if used
                        with webserver authenticator plugins like apache and
                        nginx, it makes and then reverts temporary config
                        changes in order to obtain test certificates, and
                        reloads webservers to deploy and then roll back those
                        changes. It also calls --pre-hook and --post-hook
                        commands if they are defined because they may be
                        necessary to accurately simulate renewal. --deploy-
                        hook commands are not called. (default: False)
  --debug-challenges    After setting up challenges, wait for user input
                        before submitting to CA (default: False)
  --preferred-challenges PREF_CHALLS
                        A sorted, comma delimited list of the preferred
                        challenge to use during authorization with the most
                        preferred challenge listed first (Eg, &quot;dns&quot; or &quot;tls-
                        sni-01,http,dns&quot;). Not all plugins support all
                        challenges. See
                        https://certbot.eff.org/docs/using.html#plugins for
                        details. ACME Challenges are versioned, but if you
                        pick &quot;http&quot; rather than &quot;http-01&quot;, Certbot will select
                        the latest version automatically. (default: [])
  --user-agent USER_AGENT
                        Set a custom user agent string for the client. User
                        agent strings allow the CA to collect high level
                        statistics about success rates by OS, plugin and use
                        case, and to know when to deprecate support for past
                        Python versions and flags. If you wish to hide this
                        information from the Let&#39;s Encrypt server, set this to
                        &quot;&quot;. (default: CertbotACMEClient/0.22.2 (certbot;
                        darwin 10.13.3) Authenticator/XXX Installer/YYY
                        (SUBCOMMAND; flags: FLAGS) Py/2.7.14). The flags
                        encoded in the user agent are: --duplicate, --force-
                        renew, --allow-subset-of-names, -n, and whether any
                        hooks are set.
  --user-agent-comment USER_AGENT_COMMENT
                        Add a comment to the default user agent string. May be
                        used when repackaging Certbot or calling it from
                        another tool to allow additional statistical data to
                        be collected. Ignored if --user-agent is set.
                        (Example: Foo-Wrapper/1.0) (default: None)

automation:
  Flags for automating execution &amp; other tweaks

  --keep-until-expiring, --keep, --reinstall
                        If the requested certificate matches an existing
                        certificate, always keep the existing one until it is
                        due for renewal (for the &#39;run&#39; subcommand this means
                        reinstall the existing certificate). (default: Ask)
  --expand              If an existing certificate is a strict subset of the
                        requested names, always expand and replace it with the
                        additional names. (default: Ask)
  --version             show program&#39;s version number and exit
  --force-renewal, --renew-by-default
                        If a certificate already exists for the requested
                        domains, renew it now, regardless of whether it is
                        near expiry. (Often --keep-until-expiring is more
                        appropriate). Also implies --expand. (default: False)
  --renew-with-new-domains
                        If a certificate already exists for the requested
                        certificate name but does not match the requested
                        domains, renew it now, regardless of whether it is
                        near expiry. (default: False)
  --allow-subset-of-names
                        When performing domain validation, do not consider it
                        a failure if authorizations can not be obtained for a
                        strict subset of the requested domains. This may be
                        useful for allowing renewals for multiple domains to
                        succeed even if some domains no longer point at this
                        system. This option cannot be used with --csr.
                        (default: False)
  --agree-tos           Agree to the ACME Subscriber Agreement (default: Ask)
  --duplicate           Allow making a certificate lineage that duplicates an
                        existing one (both can be renewed in parallel)
                        (default: False)
  --os-packages-only    (certbot-auto only) install OS package dependencies
                        and then stop (default: False)
  --no-self-upgrade     (certbot-auto only) prevent the certbot-auto script
                        from upgrading itself to newer released versions
                        (default: Upgrade automatically)
  --no-bootstrap        (certbot-auto only) prevent the certbot-auto script
                        from installing OS-level dependencies (default: Prompt
                        to install OS-wide dependencies, but exit if the user
                        says &#39;No&#39;)
  -q, --quiet           Silence all output except errors. Useful for
                        automation via cron. Implies --non-interactive.
                        (default: False)

security:
  Security parameters &amp; server settings

  --rsa-key-size N      Size of the RSA key. (default: 2048)
  --must-staple         Adds the OCSP Must Staple extension to the
                        certificate. Autoconfigures OCSP Stapling for
                        supported setups (Apache version &gt;= 2.3.3 ). (default:
                        False)
  --redirect            Automatically redirect all HTTP traffic to HTTPS for
                        the newly authenticated vhost. (default: Ask)
  --no-redirect         Do not automatically redirect all HTTP traffic to
                        HTTPS for the newly authenticated vhost. (default:
                        Ask)
  --hsts                Add the Strict-Transport-Security header to every HTTP
                        response. Forcing browser to always use SSL for the
                        domain. Defends against SSL Stripping. (default: None)
  --uir                 Add the &quot;Content-Security-Policy: upgrade-insecure-
                        requests&quot; header to every HTTP response. Forcing the
                        browser to use https:// for every http:// resource.
                        (default: None)
  --staple-ocsp         Enables OCSP Stapling. A valid OCSP response is
                        stapled to the certificate that the server offers
                        during TLS. (default: None)
  --strict-permissions  Require that all configuration files are owned by the
                        current user; only needed if your config is somewhere
                        unsafe like /tmp/ (default: False)

testing:
  The following flags are meant for testing and integration purposes only.

  --test-cert, --staging
                        Use the staging server to obtain or revoke test
                        (invalid) certificates; equivalent to --server https
                        ://acme-staging-v02.api.letsencrypt.org/directory
                        (default: False)
  --debug               Show tracebacks in case of errors, and allow certbot-
                        auto execution on experimental platforms (default:
                        False)
  --no-verify-ssl       Disable verification of the ACME server&#39;s certificate.
                        (default: False)
  --tls-sni-01-port TLS_SNI_01_PORT
                        Port used during tls-sni-01 challenge. This only
                        affects the port Certbot listens on. A conforming ACME
                        server will still attempt to connect on port 443.
                        (default: 443)
  --tls-sni-01-address TLS_SNI_01_ADDRESS
                        The address the server listens to during tls-sni-01
                        challenge. (default: )
  --http-01-port HTTP01_PORT
                        Port used in the http-01 challenge. This only affects
                        the port Certbot listens on. A conforming ACME server
                        will still attempt to connect on port 80. (default:
                        80)
  --http-01-address HTTP01_ADDRESS
                        The address the server listens to during http-01
                        challenge. (default: )
  --break-my-certs      Be willing to replace or renew valid certificates with
                        invalid (testing/staging) certificates (default:
                        False)

paths:
  Flags for changing execution paths &amp; servers

  --cert-path CERT_PATH
                        Path to where certificate is saved (with auth --csr),
                        installed from, or revoked. (default: None)
  --key-path KEY_PATH   Path to private key for certificate installation or
                        revocation (if account key is missing) (default: None)
  --fullchain-path FULLCHAIN_PATH
                        Accompanying path to a full certificate chain
                        (certificate plus chain). (default: None)
  --chain-path CHAIN_PATH
                        Accompanying path to a certificate chain. (default:
                        None)
  --config-dir CONFIG_DIR
                        Configuration directory. (default: /etc/letsencrypt)
  --work-dir WORK_DIR   Working directory. (default: /var/lib/letsencrypt)
  --logs-dir LOGS_DIR   Logs directory. (default: /var/log/letsencrypt)
  --server SERVER       ACME Directory Resource URI. (default:
                        https://acme-v01.api.letsencrypt.org/directory)

manage:
  Various subcommands and flags are available for managing your
  certificates:

  certificates          List certificates managed by Certbot
  delete                Clean up all files related to a certificate
  renew                 Renew all certificates (or one specified with --cert-
                        name)
  revoke                Revoke a certificate specified with --cert-path
  update_symlinks       Recreate symlinks in your /etc/letsencrypt/live/
                        directory

run:
  Options for obtaining &amp; installing certificates

certonly:
  Options for modifying how a certificate is obtained

  --csr CSR             Path to a Certificate Signing Request (CSR) in DER or
                        PEM format. Currently --csr only works with the
                        &#39;certonly&#39; subcommand. (default: None)

renew:
  The &#39;renew&#39; subcommand will attempt to renew all certificates (or more
  precisely, certificate lineages) you have previously obtained if they are
  close to expiry, and print a summary of the results. By default, &#39;renew&#39;
  will reuse the options used to create obtain or most recently successfully
  renew each certificate lineage. You can try it with `--dry-run` first. For
  more fine-grained control, you can renew individual lineages with the
  `certonly` subcommand. Hooks are available to run commands before and
  after renewal; see https://certbot.eff.org/docs/using.html#renewal for
  more information on these.

  --pre-hook PRE_HOOK   Command to be run in a shell before obtaining any
                        certificates. Intended primarily for renewal, where it
                        can be used to temporarily shut down a webserver that
                        might conflict with the standalone plugin. This will
                        only be called if a certificate is actually to be
                        obtained/renewed. When renewing several certificates
                        that have identical pre-hooks, only the first will be
                        executed. (default: None)
  --post-hook POST_HOOK
                        Command to be run in a shell after attempting to
                        obtain/renew certificates. Can be used to deploy
                        renewed certificates, or to restart any servers that
                        were stopped by --pre-hook. This is only run if an
                        attempt was made to obtain/renew a certificate. If
                        multiple renewed certificates have identical post-
                        hooks, only one will be run. (default: None)
  --deploy-hook DEPLOY_HOOK
                        Command to be run in a shell once for each
                        successfully issued certificate. For this command, the
                        shell variable $RENEWED_LINEAGE will point to the
                        config live subdirectory (for example,
                        &quot;/etc/letsencrypt/live/example.com&quot;) containing the
                        new certificates and keys; the shell variable
                        $RENEWED_DOMAINS will contain a space-delimited list
                        of renewed certificate domains (for example,
                        &quot;example.com www.example.com&quot; (default: None)
  --disable-hook-validation
                        Ordinarily the commands specified for --pre-hook
                        /--post-hook/--deploy-hook will be checked for
                        validity, to see if the programs being run are in the
                        $PATH, so that mistakes can be caught early, even when
                        the hooks aren&#39;t being run just yet. The validation is
                        rather simplistic and fails if you use more advanced
                        shell constructs, so you can use this switch to
                        disable it. (default: False)
  --no-directory-hooks  Disable running executables found in Certbot&#39;s hook
                        directories during renewal. (default: False)

certificates:
  List certificates managed by Certbot

delete:
  Options for deleting a certificate

revoke:
  Options for revocation of certificates

  --reason {unspecified,keycompromise,affiliationchanged,superseded,cessationofoperation}
                        Specify reason for revoking certificate. (default:
                        unspecified)
  --delete-after-revoke
                        Delete certificates after revoking them. (default:
                        None)
  --no-delete-after-revoke
                        Do not delete certificates after revoking them. This
                        option should be used with caution because the &#39;renew&#39;
                        subcommand will attempt to renew undeleted revoked
                        certificates. (default: None)

register:
  Options for account registration &amp; modification

  --register-unsafely-without-email
                        Specifying this flag enables registering an account
                        with no email address. This is strongly discouraged,
                        because in the event of key loss or account compromise
                        you will irrevocably lose access to your account. You
                        will also be unable to receive notice about impending
                        expiration or revocation of your certificates. Updates
                        to the Subscriber Agreement will still affect you, and
                        will be effective 14 days after posting an update to
                        the web site. (default: False)
  --update-registration
                        With the register verb, indicates that details
                        associated with an existing registration, such as the
                        e-mail address, should be updated, rather than
                        registering a new account. (default: False)
  -m EMAIL, --email EMAIL
                        Email used for registration and recovery contact.
                        (default: Ask)
  --eff-email           Share your e-mail address with EFF (default: None)
  --no-eff-email        Don&#39;t share your e-mail address with EFF (default:
                        None)

unregister:
  Options for account deactivation.

  --account ACCOUNT_ID  Account ID to use (default: None)

install:
  Options for modifying how a certificate is deployed

config_changes:
  Options for controlling which changes are displayed

  --num NUM             How many past revisions you want to be displayed
                        (default: None)

rollback:
  Options for rolling back server configuration changes

  --checkpoints N       Revert configuration N number of checkpoints.
                        (default: 1)

plugins:
  Options for for the &quot;plugins&quot; subcommand

  --init                Initialize plugins. (default: False)
  --prepare             Initialize and prepare plugins. (default: False)
  --authenticators      Limit to authenticator plugins only. (default: None)
  --installers          Limit to installer plugins only. (default: None)

update_symlinks:
  Recreates certificate and key symlinks in /etc/letsencrypt/live, if you
  changed them by hand or edited a renewal configuration file

plugins:
  Plugin Selection: Certbot client supports an extensible plugins
  architecture. See &#39;certbot plugins&#39; for a list of all installed plugins
  and their names. You can force a particular plugin by setting options
  provided below. Running --help &lt;plugin_name&gt; will list flags specific to
  that plugin.

  --configurator CONFIGURATOR
                        Name of the plugin that is both an authenticator and
                        an installer. Should not be used together with
                        --authenticator or --installer. (default: Ask)
  -a AUTHENTICATOR, --authenticator AUTHENTICATOR
                        Authenticator plugin name. (default: None)
  -i INSTALLER, --installer INSTALLER
                        Installer plugin name (also used to find domains).
                        (default: None)
  --apache              Obtain and install certificates using Apache (default:
                        False)
  --nginx               Obtain and install certificates using Nginx (default:
                        False)
  --standalone          Obtain certificates using a &quot;standalone&quot; webserver.
                        (default: False)
  --manual              Provide laborious manual instructions for obtaining a
                        certificate (default: False)
  --webroot             Obtain certificates by placing files in a webroot
                        directory. (default: False)
  --dns-cloudflare      Obtain certificates using a DNS TXT record (if you are
                        using Cloudflare for DNS). (default: False)
  --dns-cloudxns        Obtain certificates using a DNS TXT record (if you are
                        using CloudXNS for DNS). (default: False)
  --dns-digitalocean    Obtain certificates using a DNS TXT record (if you are
                        using DigitalOcean for DNS). (default: False)
  --dns-dnsimple        Obtain certificates using a DNS TXT record (if you are
                        using DNSimple for DNS). (default: False)
  --dns-dnsmadeeasy     Obtain certificates using a DNS TXT record (if you
                        areusing DNS Made Easy for DNS). (default: False)
  --dns-google          Obtain certificates using a DNS TXT record (if you are
                        using Google Cloud DNS). (default: False)
  --dns-luadns          Obtain certificates using a DNS TXT record (if you are
                        using LuaDNS for DNS). (default: False)
  --dns-nsone           Obtain certificates using a DNS TXT record (if you are
                        using NS1 for DNS). (default: False)
  --dns-rfc2136         Obtain certificates using a DNS TXT record (if you are
                        using BIND for DNS). (default: False)
  --dns-route53         Obtain certificates using a DNS TXT record (if you are
                        using Route53 for DNS). (default: False)

apache:
  Apache Web Server plugin - Beta

  --apache-enmod APACHE_ENMOD
                        Path to the Apache &#39;a2enmod&#39; binary. (default: None)
  --apache-dismod APACHE_DISMOD
                        Path to the Apache &#39;a2dismod&#39; binary. (default: None)
  --apache-le-vhost-ext APACHE_LE_VHOST_EXT
                        SSL vhost configuration extension. (default: -le-
                        ssl.conf)
  --apache-server-root APACHE_SERVER_ROOT
                        Apache server root directory. (default: /etc/apache2)
  --apache-vhost-root APACHE_VHOST_ROOT
                        Apache server VirtualHost configuration root (default:
                        None)
  --apache-logs-root APACHE_LOGS_ROOT
                        Apache server logs directory (default:
                        /var/log/apache2)
  --apache-challenge-location APACHE_CHALLENGE_LOCATION
                        Directory path for challenge configuration. (default:
                        /etc/apache2/other)
  --apache-handle-modules APACHE_HANDLE_MODULES
                        Let installer handle enabling required modules for
                        you.(Only Ubuntu/Debian currently) (default: False)
  --apache-handle-sites APACHE_HANDLE_SITES
                        Let installer handle enabling sites for you.(Only
                        Ubuntu/Debian currently) (default: False)

certbot-route53:auth:
  Obtain certificates using a DNS TXT record (if you are using AWS Route53
  for DNS).

  --certbot-route53:auth-propagation-seconds CERTBOT_ROUTE53:AUTH_PROPAGATION_SECONDS
                        The number of seconds to wait for DNS to propagate
                        before asking the ACME server to verify the DNS
                        record. (default: 10)

dns-cloudflare:
  Obtain certificates using a DNS TXT record (if you are using Cloudflare
  for DNS).

  --dns-cloudflare-propagation-seconds DNS_CLOUDFLARE_PROPAGATION_SECONDS
                        The number of seconds to wait for DNS to propagate
                        before asking the ACME server to verify the DNS
                        record. (default: 10)
  --dns-cloudflare-credentials DNS_CLOUDFLARE_CREDENTIALS
                        Cloudflare credentials INI file. (default: None)

dns-cloudxns:
  Obtain certificates using a DNS TXT record (if you are using CloudXNS for
  DNS).

  --dns-cloudxns-propagation-seconds DNS_CLOUDXNS_PROPAGATION_SECONDS
                        The number of seconds to wait for DNS to propagate
                        before asking the ACME server to verify the DNS
                        record. (default: 30)
  --dns-cloudxns-credentials DNS_CLOUDXNS_CREDENTIALS
                        CloudXNS credentials INI file. (default: None)

dns-digitalocean:
  Obtain certs using a DNS TXT record (if you are using DigitalOcean for
  DNS).

  --dns-digitalocean-propagation-seconds DNS_DIGITALOCEAN_PROPAGATION_SECONDS
                        The number of seconds to wait for DNS to propagate
                        before asking the ACME server to verify the DNS
                        record. (default: 10)
  --dns-digitalocean-credentials DNS_DIGITALOCEAN_CREDENTIALS
                        DigitalOcean credentials INI file. (default: None)

dns-dnsimple:
  Obtain certificates using a DNS TXT record (if you are using DNSimple for
  DNS).

  --dns-dnsimple-propagation-seconds DNS_DNSIMPLE_PROPAGATION_SECONDS
                        The number of seconds to wait for DNS to propagate
                        before asking the ACME server to verify the DNS
                        record. (default: 30)
  --dns-dnsimple-credentials DNS_DNSIMPLE_CREDENTIALS
                        DNSimple credentials INI file. (default: None)

dns-dnsmadeeasy:
  Obtain certificates using a DNS TXT record (if you are using DNS Made Easy
  for DNS).

  --dns-dnsmadeeasy-propagation-seconds DNS_DNSMADEEASY_PROPAGATION_SECONDS
                        The number of seconds to wait for DNS to propagate
                        before asking the ACME server to verify the DNS
                        record. (default: 60)
  --dns-dnsmadeeasy-credentials DNS_DNSMADEEASY_CREDENTIALS
                        DNS Made Easy credentials INI file. (default: None)

dns-google:
  Obtain certificates using a DNS TXT record (if you are using Google Cloud
  DNS for DNS).

  --dns-google-propagation-seconds DNS_GOOGLE_PROPAGATION_SECONDS
                        The number of seconds to wait for DNS to propagate
                        before asking the ACME server to verify the DNS
                        record. (default: 60)
  --dns-google-credentials DNS_GOOGLE_CREDENTIALS
                        Path to Google Cloud DNS service account JSON file.
                        (See https://developers.google.com/identity/protocols/
                        OAuth2ServiceAccount#creatinganaccount forinformation
                        about creating a service account and
                        https://cloud.google.com/dns/access-
                        control#permissions_and_roles for information about
                        therequired permissions.) (default: None)

dns-luadns:
  Obtain certificates using a DNS TXT record (if you are using LuaDNS for
  DNS).

  --dns-luadns-propagation-seconds DNS_LUADNS_PROPAGATION_SECONDS
                        The number of seconds to wait for DNS to propagate
                        before asking the ACME server to verify the DNS
                        record. (default: 30)
  --dns-luadns-credentials DNS_LUADNS_CREDENTIALS
                        LuaDNS credentials INI file. (default: None)

dns-nsone:
  Obtain certificates using a DNS TXT record (if you are using NS1 for DNS).

  --dns-nsone-propagation-seconds DNS_NSONE_PROPAGATION_SECONDS
                        The number of seconds to wait for DNS to propagate
                        before asking the ACME server to verify the DNS
                        record. (default: 30)
  --dns-nsone-credentials DNS_NSONE_CREDENTIALS
                        NS1 credentials file. (default: None)

dns-rfc2136:
  Obtain certificates using a DNS TXT record (if you are using BIND for
  DNS).

  --dns-rfc2136-propagation-seconds DNS_RFC2136_PROPAGATION_SECONDS
                        The number of seconds to wait for DNS to propagate
                        before asking the ACME server to verify the DNS
                        record. (default: 60)
  --dns-rfc2136-credentials DNS_RFC2136_CREDENTIALS
                        RFC 2136 credentials INI file. (default: None)

dns-route53:
  Obtain certificates using a DNS TXT record (if you are using AWS Route53
  for DNS).

  --dns-route53-propagation-seconds DNS_ROUTE53_PROPAGATION_SECONDS
                        The number of seconds to wait for DNS to propagate
                        before asking the ACME server to verify the DNS
                        record. (default: 10)

manual:
  Authenticate through manual configuration or custom shell scripts. When
  using shell scripts, an authenticator script must be provided. The
  environment variables available to this script depend on the type of
  challenge. $CERTBOT_DOMAIN will always contain the domain being
  authenticated. For HTTP-01 and DNS-01, $CERTBOT_VALIDATION is the
  validation string, and $CERTBOT_TOKEN is the filename of the resource
  requested when performing an HTTP-01 challenge. When performing a TLS-
  SNI-01 challenge, $CERTBOT_SNI_DOMAIN will contain the SNI name for which
  the ACME server expects to be presented with the self-signed certificate
  located at $CERTBOT_CERT_PATH. The secret key needed to complete the TLS
  handshake is located at $CERTBOT_KEY_PATH. An additional cleanup script
  can also be provided and can use the additional variable
  $CERTBOT_AUTH_OUTPUT which contains the stdout output from the auth
  script.

  --manual-auth-hook MANUAL_AUTH_HOOK
                        Path or command to execute for the authentication
                        script (default: None)
  --manual-cleanup-hook MANUAL_CLEANUP_HOOK
                        Path or command to execute for the cleanup script
                        (default: None)
  --manual-public-ip-logging-ok
                        Automatically allows public IP logging (default: Ask)

nginx:
  Nginx Web Server plugin - Alpha

  --nginx-server-root NGINX_SERVER_ROOT
                        Nginx server root directory. (default: /etc/nginx)
  --nginx-ctl NGINX_CTL
                        Path to the &#39;nginx&#39; binary, used for &#39;configtest&#39; and
                        retrieving nginx version number. (default: nginx)

null:
  Null Installer

standalone:
  Spin up a temporary webserver

webroot:
  Place files in webroot directory

  --webroot-path WEBROOT_PATH, -w WEBROOT_PATH
                        public_html / webroot path. This can be specified
                        multiple times to handle different domains; each
                        domain will have the webroot path that preceded it.
                        For instance: `-w /var/www/example -d example.com -d
                        www.example.com -w /var/www/thing -d thing.net -d
                        m.thing.net` (default: Ask)
  --webroot-map WEBROOT_MAP
                        JSON dictionary mapping domains to webroot paths; this
                        implies -d for each entry. You may need to escape this
                        from your shell. E.g.: --webroot-map
                        &#39;{&quot;eg1.is,m.eg1.is&quot;:&quot;/www/eg1/&quot;, &quot;eg2.is&quot;:&quot;/www/eg2&quot;}&#39;
                        This option is merged with, but takes precedence over,
                        -w / -d entries. At present, if you put webroot-map in
                        a config file, it needs to be on a single line, like:
                        webroot-map = {&quot;example.com&quot;:&quot;/var/www&quot;}. (default:
                        {})
</pre></div>
</div>
</div>
<div class="section" id="getting-help">
<h2><a class="toc-backref" href="#id33">Getting help</a><a class="headerlink" href="#getting-help" title="Permalink to this headline"></a></h2>
<p>If you’re having problems, we recommend posting on the Let’s Encrypt
<a class="reference external" href="https://community.letsencrypt.org">Community Forum</a>.</p>
<p>You can also chat with us on IRC: <a class="reference external" href="https://webchat.freenode.net?channels=%23letsencrypt">(#letsencrypt &#64;
freenode)</a></p>
<p>If you find a bug in the software, please do report it in our <a class="reference external" href="https://github.com/certbot/certbot/issues">issue
tracker</a>. Remember to
give us as much information as possible:</p>
<ul class="simple">
<li>copy and paste exact command line used and the output (though mind
that the latter might include some personally identifiable
information, including your email and domains)</li>
<li>copy and paste logs from <code class="docutils literal"><span class="pre">/var/log/letsencrypt</span></code> (though mind they
also might contain personally identifiable information)</li>
<li>copy and paste <code class="docutils literal"><span class="pre">certbot</span> <span class="pre">--version</span></code> output</li>
<li>your operating system, including specific version</li>
<li>specify which installation method you’ve chosen</li>
</ul>
</div>
</div>


           </div>
           <div class="articleComments">
            
           </div>
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="contributing.html" class="btn btn-neutral float-right" title="Developer Guide" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
      
      
        <a href="install.html" class="btn btn-neutral" title="Get Certbot" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>
    <span class="copyright">
    &copy; Copyright 2014-2018 - The Certbot software and documentation are licensed under the Apache 2.0 license as described at <a href="https://eff.org/cb-license">https://eff.org/cb-license</a>.
    </span>
    <br>
    <br>
    <span class="status">
        <a href="https://letsencrypt.status.io/">Let's Encrypt Status</a>
    </span>

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>
        </div>
      </div>

    </section>

  </div>
  


  

    <script type="text/javascript">
        var DOCUMENTATION_OPTIONS = {
            URL_ROOT:'./',
            VERSION:'0.23.0',
            COLLAPSE_INDEX:false,
            FILE_SUFFIX:'.html',
            HAS_SOURCE:  true,
            SOURCELINK_SUFFIX: '.txt'
        };
    </script>
      <script type="text/javascript" src="_static/jquery.js"></script>
      <script type="text/javascript" src="_static/underscore.js"></script>
      <script type="text/javascript" src="_static/doctools.js"></script>

  

  
  
    <script type="text/javascript" src="_static/js/theme.js"></script>
  

  
  
  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.StickyNav.enable();
      });
  </script>
   

</body>
</html>