I have added the certificate to the Mono 3.2.8 store by using the following command in Linux.
certmgr -add -c -m My mycert.cer
The added cert can be viewed by
certmgr -list -c -m My mycert.cer
Used the following command to delete the previously added certificate. But the certificate is not getting deleted. The command didn't give any error messgae.
certmgr -del -c -m My mycert.cer
- How to remove the certificate from the stores (My,CA,Trust etc ?)
- Where is Mono storing the certificate details in the system?
I tried to add the certificate by using the command mozroots, but by default it's trying to add the certificate to the store AddressBook. (I couldn't find any command to remove the certificate from the store My or Trust)
mozroots --import --machine --sync
certmgr -ssl -m https://test:1200/service
Running this command:
Where CERTHASH is the number in
Unique Hash
(you can extract this value runningcertmgr -list -c -v -m YOURSTORE
, see example at the end of my answer):In some of these paths:
Examples:
Add new certificate to
Trust
store (valid stores are:My
,AddressBook
,CA
,Trust
andDisallowed
):List certificates:
Remove certificate: