Skip to content

quick test of .net core's certificate retrieval with presence of private key

Notifications You must be signed in to change notification settings

Ugenx/netcore-certtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Problem Statement

When bootstrapping a linux docker image with a self-signed certificate and corresponding private key, dotnetcore 2.0 applications were able to access the certificate but not the private key.

The same code running in windows was able to retrieve both certificate and private key.

Test Methods

Self-signed certificate was generated using instructions located on https://help.ubuntu.com/lts/serverguide/certificates-and-security.html

.pfx conversion for use in windows testing was accomplished using openssl command: openssl pkcs12 -export -out server.pfx --inkey server.key -in server.crt

Ubuntu 17.10 - dotNetCore 2.1.4

server.crt placed in /etc/ssl/certs

server.key (unencrypted, no passphrase) placed in /etc/ssl/private

Result: Ubuntu Result

Windows 10 v1709 - dotNetCore 2.1.4

server.pfx imported to Trusted Root Certification Authorities\Certificates (blank passphrase)

Result: Windows Result

About

quick test of .net core's certificate retrieval with presence of private key

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages