-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove --subject-format from documentation/tutorials
- Loading branch information
1 parent
1e42e91
commit 75bc303
Showing
13 changed files
with
31 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ that these two will give the same CommonName and ``SubjectAlternativeName``: | |
|
||
.. code-block:: console | ||
$ python manage.py sign_cert --subject-format=rfc4514 --subject C=AT,...,CN=example.com | ||
$ python manage.py sign_cert --subject C=AT,...,CN=example.com | ||
$ python manage.py sign_cert --alt example.com | ||
A given CommonName is only added to the ``SubjectAlternativeName`` extension if it is a valid :ref:`name | ||
|
@@ -105,7 +105,7 @@ You can also disable adding the CommonName as ``subjectAlternativeName``: | |
|
||
.. code-block:: console | ||
$ python manage.py sign_cert --cn-not-in-san --subject-format=rfc4514 --subject C=AT,...,CN=example.com --alt=example.net | ||
$ python manage.py sign_cert --cn-not-in-san --subject C=AT,...,CN=example.com --alt=example.net | ||
... this will only have "example.net" but not example.com as ``subjectAlternativeName``. | ||
|
||
|
@@ -117,7 +117,7 @@ in :manpage:`ASN1_GENERATE_NCONF(3SSL)`: | |
|
||
.. code-block:: console | ||
$ python manage.py sign_cert --subject-format=rfc4514 --subject CN=example.com --alt="otherName:1.3.6.1.4.1.311.20.2.3;UTF8:[email protected]" | ||
$ python manage.py sign_cert --subject CN=example.com --alt="otherName:1.3.6.1.4.1.311.20.2.3;UTF8:[email protected]" | ||
Note that currently only UTF8 strings are supported. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,15 +101,15 @@ to create a certificate authority with a country, organization and common name i | |
|
||
.. code-block:: console | ||
$ python manage.py init_ca --subject-format=rfc4514 \ | ||
$ python manage.py init_ca \ | ||
> NameOfCA C=AT,O=MyOrg,CN=ca.example.com | ||
... but you can also use more special fields named in :py:attr:`~django_ca.constants.NAME_OID_NAMES`, e.g. a | ||
more verbose common name and an email address: | ||
|
||
.. code-block:: console | ||
$ python manage.py init_ca --subject-format=rfc4514 \ | ||
$ python manage.py init_ca \ | ||
> NameOfCA C=AT,O=MyOrg,commonName=ca.example.com,[email protected] | ||
As defined in RFC 4514, you can also use dotted strings to name arbitrary attributes. This example uses the | ||
|
@@ -119,7 +119,7 @@ valid dotted string could be used as well): | |
|
||
.. code-block:: console | ||
$ python manage.py init_ca --subject-format=rfc4514 \ | ||
$ python manage.py init_ca \ | ||
> NameOfCA C=AT,organizationName=MyOrg,2.5.4.3=ca.example.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/source/include/quickstart_with_docker_compose/setup-cas.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
commands: | ||
- command: docker compose exec backend manage createsuperuser | ||
run: docker compose exec backend manage shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('user', '[email protected]', 'nopass')" | ||
- command: docker compose exec backend manage init_ca --path-length=1 --subject-format=rfc4514 Root CN=Root | ||
- command: docker compose exec backend manage init_ca --path=ca/shared/ --parent=Root --subject-format=rfc4514 Intermediate CN=Intermediate | ||
- command: docker compose exec backend manage init_ca --path-length=1 Root CN=Root | ||
- command: docker compose exec backend manage init_ca --path=ca/shared/ --parent=Root Intermediate CN=Intermediate |
2 changes: 1 addition & 1 deletion
2
docs/source/include/quickstart_with_docker_compose/sign_cert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters