what is correct way to upload X509Certificate (.cer) content to database from form in View?
In my View I have this upload input:
<div class="form-group row">
<label asp-for="Certificates" class="col-sm-2 col-sm-offset-2 form-control-label"></label>
<input type="file" asp-for="Certificates"/>
</div>
In my ViewModel I have this parameter:
public IFormFile Certificate { get; set; }
My controller gets this IFormFile, but I can't get certificate's content in byte[]. How could I get this byte array by uploading certificate?