# CertificateLoader Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.connections.security/orleans.connections.security.certificateloader/)

## LoadFromStoreCert(string, string, StoreLocation, bool, bool) {#loadfromstorecert-string-string-system-security-cryptography-x509certificates-st-82ee3878}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.connections.security/orleans.connections.security.certificateloader/methods/loadfromstorecert-string-string-system-security-cryptography-x509certificates-st-82ee3878/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Connections.Security/Security/CertificateLoader.cs#L20-L49)

```csharp
public static X509Certificate2 LoadFromStoreCert(string subject, string storeName, StoreLocation storeLocation, bool allowInvalid, bool server)
```

### Parameters

- `subject` (`string`)
- `storeName` (`string`)
- `storeLocation` (`StoreLocation`)
- `allowInvalid` (`bool`)
- `server` (`bool`)
