- How to remove a certificate from stores (My, CA, Trust, etc.)?
Running this command:
certmgr -del -c -v -m Trust CERTHASH
Where CERTHASH is the number in Unique Hash (you can extract this value certmgr -list -c -v -m YOURSTORE , see the example at the end of my answer):
- Where does Mono store certificate data on the system?
In some of these ways:
/usr/share/.mono/certs/ ~/.config/.mono/certs/
Examples:
Add a new certificate to the Trust store (valid stores: My , AddressBook , CA , Trust and Disallowed ):
me@myserver :~$ certmgr -add -c -v -m Trust google.cer Mono Certificate Manager - version 3.2.6.0 Manage X.509 certificates and CRL from stores. Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed. 1 certificate(s) added to store Trust.
Certificate List:
me@myserver :~$ certmgr -list -c -v -m Trust Mono Certificate Manager - version 3.2.6.0 Manage X.509 certificates and CRL from stores. Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed. X.509 v3 Certificate Serial Number: 7CBE60802548D325 Issuer Name: C=US, O=Google Inc, CN=Google Internet Authority G2 Subject Name: C=US, S=California, L=Mountain View, O=Google Inc, CN=*.google.com Valid From: 10/09/2014 14:03:47 Valid Until: 09/12/2014 0:00:00 Unique Hash: 4D348D0E4028C850A7C783413571111E8E3BD9DE Key Algorithm: 1.2.840.113549.1.1.1 Algorithm Parameters: 0500 Public Key: Signature Algorithm: 1.2.840.113549.1.1.5 Algorithm Parameters: 0500 Signature: 39250E018CA35E143782C4A3DCD416D7C36BFDE91C20936AF691478B5C15733AA17127687656B702EBFCE79D3C8C5A69A40B75AD797E0E3435688F7B5145699990A2F7330C5437D404E94CD9D596CBB7005661EC27AB4A21541510F3CC6B9020CDEC703AF3BCFCA0BEC6799AF93C1FE0CC25FAABA28F2F06362616C4C44164CDE3C78A7CF6D6F025BFA79476664FB0565C5FC5C9864D9B49078FE34B915CC40DE5B36C4D1E631F944B103CDF8F9CD87F19566AA7B4AFC16981EE2FF3B7FC8236CE722D976F9A8FD3A76B80828B59CE8381260276966892AC3693014CA4559189656EFCB26D90C2B363758E1EAD458AD79885E2B2BFC1CAE883E89882BE3BBA19 Private Key: False KeyPair Key: False
Delete certificate:
me@myserver :~$ certmgr -del -c -v -m Trust 4D348D0E4028C850A7C783413571111E8E3BD9DE
Gooseman
source share