Cannot export and trust in a single command - Invalid certificate error - Separate commands works
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 281
Description
### Type of issue
Typo
### Description
It seems that if you do an export in PEM and a trust in the same command, it does not work.
You get invalid certificate warnings.
However, it works if you generate the certificates in 1 command and then trust them in a separate command.
This seems broken to me.
Example:
❌ doesn't work
```
dotnet dev-certs https --format pem -ep "$env:APPDATA/ASP.NET/https/test.pem" --no-password --trust --verbose
```
✅ does work
```
dotnet dev-certs https --format pem -ep "$env:APPDATA/ASP.NET/https/test.pem" --no-password
dotnet dev-certs https --trust
```
### Page URL
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-dev-certs
### Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/tools/dotnet-dev-certs.md
### Document Version Independent Id
dee42537-d414-7e81-45c8-5b7d8ef24bca
### Article author
@tdykstra
### Metadata
* ID: 7f0a39ec-43be-71d9-594a-3d545d190eee
* Service: **dotnet-fundamentals**
---
[Associated WorkItem - 199401](https://dev.azure.com/msft-skilling/Content/_workitems/edit/199401)
Contributor guide
Assessment
This issue has not been assessed yet.